Class: RockautoApi::Configuration
- Inherits:
-
Object
- Object
- RockautoApi::Configuration
- Defined in:
- lib/rockauto_api/configuration.rb
Instance Attribute Summary collapse
-
#cache ⇒ Object
Returns the value of attribute cache.
-
#credentials ⇒ Object
Returns the value of attribute credentials.
-
#default_mobile ⇒ Object
Returns the value of attribute default_mobile.
-
#request_timeout ⇒ Object
Returns the value of attribute request_timeout.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
Instance Method Summary collapse
- #email ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #password ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 13 |
# File 'lib/rockauto_api/configuration.rb', line 7 def initialize @default_mobile = true @cache = nil @request_timeout = 30 @user_agent = nil @credentials = nil end |
Instance Attribute Details
#cache ⇒ Object
Returns the value of attribute cache.
5 6 7 |
# File 'lib/rockauto_api/configuration.rb', line 5 def cache @cache end |
#credentials ⇒ Object
Returns the value of attribute credentials.
5 6 7 |
# File 'lib/rockauto_api/configuration.rb', line 5 def credentials @credentials end |
#default_mobile ⇒ Object
Returns the value of attribute default_mobile.
5 6 7 |
# File 'lib/rockauto_api/configuration.rb', line 5 def default_mobile @default_mobile end |
#request_timeout ⇒ Object
Returns the value of attribute request_timeout.
5 6 7 |
# File 'lib/rockauto_api/configuration.rb', line 5 def request_timeout @request_timeout end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
5 6 7 |
# File 'lib/rockauto_api/configuration.rb', line 5 def user_agent @user_agent end |
Instance Method Details
#email ⇒ Object
15 16 17 |
# File 'lib/rockauto_api/configuration.rb', line 15 def email credentials&.fetch(:email, nil) end |
#password ⇒ Object
19 20 21 |
# File 'lib/rockauto_api/configuration.rb', line 19 def password credentials&.fetch(:password, nil) end |