Class: EcalClient::Configuration
- Inherits:
-
Object
- Object
- EcalClient::Configuration
- Defined in:
- lib/ecal_client.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#options ⇒ Object
Returns the value of attribute options.
-
#secret ⇒ Object
Returns the value of attribute secret.
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.
11 12 13 14 15 16 |
# File 'lib/ecal_client.rb', line 11 def initialize self.key = nil self.secret = nil self. = {} set_defaults end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
9 10 11 |
# File 'lib/ecal_client.rb', line 9 def key @key end |
#options ⇒ Object
Returns the value of attribute options.
9 10 11 |
# File 'lib/ecal_client.rb', line 9 def end |
#secret ⇒ Object
Returns the value of attribute secret.
9 10 11 |
# File 'lib/ecal_client.rb', line 9 def secret @secret end |
Instance Method Details
#set_defaults ⇒ Object
18 19 20 21 |
# File 'lib/ecal_client.rb', line 18 def set_defaults [:verbose] ||= false [:read_timeout] ||= 30 end |