Class: Supercamp::Configuration
- Inherits:
-
Object
- Object
- Supercamp::Configuration
- Defined in:
- lib/supercamp/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
- #base_url ⇒ Object
- #configure {|_self| ... } ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
8 9 10 |
# File 'lib/supercamp/configuration.rb', line 8 def initialize @timeout ||= 5 end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
5 6 7 |
# File 'lib/supercamp/configuration.rb', line 5 def api_key @api_key end |
#timeout ⇒ Object
Returns the value of attribute timeout.
6 7 8 |
# File 'lib/supercamp/configuration.rb', line 6 def timeout @timeout end |
Instance Method Details
#base_url ⇒ Object
16 17 18 |
# File 'lib/supercamp/configuration.rb', line 16 def base_url "http://api.amp.active.com/camping" end |
#configure {|_self| ... } ⇒ Object
12 13 14 |
# File 'lib/supercamp/configuration.rb', line 12 def configure yield self end |