Class: FirstGiving::Configuration
- Inherits:
-
Object
- Object
- FirstGiving::Configuration
- Defined in:
- lib/firstgiving.rb
Instance Attribute Summary collapse
-
#application_key ⇒ Object
Returns the value of attribute application_key.
-
#options ⇒ Object
Returns the value of attribute options.
-
#security_token ⇒ Object
Returns the value of attribute security_token.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #set_defaults ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
17 18 19 20 21 22 |
# File 'lib/firstgiving.rb', line 17 def initialize self.application_key = nil self.security_token = nil self. = {} set_defaults end |
Instance Attribute Details
#application_key ⇒ Object
Returns the value of attribute application_key.
15 16 17 |
# File 'lib/firstgiving.rb', line 15 def application_key @application_key end |
#options ⇒ Object
Returns the value of attribute options.
15 16 17 |
# File 'lib/firstgiving.rb', line 15 def @options end |
#security_token ⇒ Object
Returns the value of attribute security_token.
15 16 17 |
# File 'lib/firstgiving.rb', line 15 def security_token @security_token end |
Instance Method Details
#set_defaults ⇒ Object
24 25 26 27 28 29 |
# File 'lib/firstgiving.rb', line 24 def set_defaults [:verbose] ||= false [:read_timeout] ||= 30 [:use_ssl] ||= false [:use_staging] ||= true end |