lib/firstgiving.rb in firstgiving-1.0.0 vs lib/firstgiving.rb in firstgiving-1.0.1

- old
+ new

@@ -8,11 +8,10 @@ # Donation API # Transaction API # Search API module FirstGiving - class Configuration attr_accessor :application_key, :security_token, :options def initialize self.application_key = nil @@ -20,14 +19,14 @@ self.options = {} set_defaults end def set_defaults - self.options[:verbose] ||= false - self.options[:read_timeout] ||= 30 - self.options[:use_ssl] ||= false - self.options[:use_staging] ||= true + options[:verbose] ||= false + options[:read_timeout] ||= 30 + options[:use_ssl] ||= false + options[:use_staging] ||= true end end def self.configuration @configuration ||= Configuration.new @@ -46,9 +45,8 @@ end def self.donation @donation ||= Donation.new end - end FG = FirstGiving