Class: Direct::API::V5::Settings
- Inherits:
-
Object
- Object
- Direct::API::V5::Settings
- Defined in:
- lib/direct/api/v5/settings.rb
Instance Attribute Summary collapse
-
#auth_token ⇒ Object
Returns the value of attribute auth_token.
-
#client_login ⇒ Object
Returns the value of attribute client_login.
-
#host ⇒ Object
Returns the value of attribute host.
-
#language ⇒ Object
Returns the value of attribute language.
Instance Method Summary collapse
-
#initialize(settings = {}) ⇒ Settings
constructor
A new instance of Settings.
Constructor Details
#initialize(settings = {}) ⇒ Settings
Returns a new instance of Settings.
10 11 12 13 14 15 |
# File 'lib/direct/api/v5/settings.rb', line 10 def initialize(settings = {}) @host = settings[:host] || DefaultSettings.host @language = settings[:language] || DefaultSettings.language @auth_token = settings[:auth_token] || DefaultSettings.auth_token @client_login = settings[:client_login] || DefaultSettings.client_login end |
Instance Attribute Details
#auth_token ⇒ Object
Returns the value of attribute auth_token.
7 8 9 |
# File 'lib/direct/api/v5/settings.rb', line 7 def auth_token @auth_token end |
#client_login ⇒ Object
Returns the value of attribute client_login.
8 9 10 |
# File 'lib/direct/api/v5/settings.rb', line 8 def client_login @client_login end |
#host ⇒ Object
Returns the value of attribute host.
5 6 7 |
# File 'lib/direct/api/v5/settings.rb', line 5 def host @host end |
#language ⇒ Object
Returns the value of attribute language.
6 7 8 |
# File 'lib/direct/api/v5/settings.rb', line 6 def language @language end |