lib/open311/configuration.rb in open311-0.2.3 vs lib/open311/configuration.rb in open311-0.3.0

- old
+ new

@@ -20,23 +20,23 @@ DEFAULT_API_KEY = nil DEFAULT_ENDPOINT = nil DEFAULT_FORMAT = :xml DEFAULT_JURISDICTION = nil DEFAULT_PROXY = nil - DEFAULT_USER_AGENT = "Open311 Ruby Gem #{Open311::VERSION}".freeze + DEFAULT_USER_AGENT = "Open311 Ruby Gem #{Open311::Version}".freeze - attr_accessor *VALID_OPTIONS_KEYS + attr_accessor(*VALID_OPTIONS_KEYS) def self.extended(base) base.reset end def configure yield self end def options - VALID_OPTIONS_KEYS.inject({}){|o,k| o.merge!(k => send(k)) } + VALID_OPTIONS_KEYS.inject({}) { |a, e| a.merge!(e => send(e)) } end def reset self.adapter = DEFAULT_ADAPTER self.api_key = DEFAULT_API_KEY