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

- old
+ new

@@ -2,12 +2,12 @@ require 'open311/client/request' require 'open311/client/service' module Open311 class Client - attr_accessor *Configuration::VALID_OPTIONS_KEYS + attr_accessor(*Configuration::VALID_OPTIONS_KEYS) - def initialize(options={}) + def initialize(options = {}) options = Open311.options.merge(options) Configuration::VALID_OPTIONS_KEYS.each do |key| send("#{key}=", options[key]) end end