Class: Direct::API::V5::Settings

Inherits:
Object
  • Object
show all
Defined in:
lib/direct/api/v5/settings.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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
   = settings[:client_login] || DefaultSettings.
end

Instance Attribute Details

#auth_tokenObject

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_loginObject

Returns the value of attribute client_login.



8
9
10
# File 'lib/direct/api/v5/settings.rb', line 8

def 
  
end

#hostObject

Returns the value of attribute host.



5
6
7
# File 'lib/direct/api/v5/settings.rb', line 5

def host
  @host
end

#languageObject

Returns the value of attribute language.



6
7
8
# File 'lib/direct/api/v5/settings.rb', line 6

def language
  @language
end