Class: Relax::Config
- Inherits:
-
Object
- Object
- Relax::Config
- Defined in:
- lib/relax/config.rb
Constant Summary collapse
Instance Attribute Summary collapse
-
#adapter ⇒ Object
Returns the value of attribute adapter.
-
#base_uri ⇒ Object
Returns the value of attribute base_uri.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
13 14 15 16 17 |
# File 'lib/relax/config.rb', line 13 def initialize self.adapter = Faraday.default_adapter self.user_agent = USER_AGENT self.timeout = TIMEOUT end |
Instance Attribute Details
#adapter ⇒ Object
Returns the value of attribute adapter.
8 9 10 |
# File 'lib/relax/config.rb', line 8 def adapter @adapter end |
#base_uri ⇒ Object
Returns the value of attribute base_uri.
9 10 11 |
# File 'lib/relax/config.rb', line 9 def base_uri @base_uri end |
#timeout ⇒ Object
Returns the value of attribute timeout.
10 11 12 |
# File 'lib/relax/config.rb', line 10 def timeout @timeout end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
11 12 13 |
# File 'lib/relax/config.rb', line 11 def user_agent @user_agent end |