nomad-cli / houston

Apple Push Notifications; No Dirigible Required
http://nomad-cli.com
MIT License
2.93k stars 229 forks source link

Notification initialize to string #84

Closed soramugi closed 9 years ago

soramugi commented 9 years ago

look to

Houston::Notification.new(JSON.parse(json).with_indifferent_access)

In new from json configuration file MOTTAINAI time to realize that we need a description the .with_indifferent_access Although I symbol likes

mattt commented 9 years ago

Thanks for the PR, @soramugi, but it's up to the end-user to supply options as symbols. The difference between symbolic and string access to hash members has always been a rough edge for Ruby, but in my opinion, indifferent hash access is not the responsibility of the library.