Class: RakutenWebService::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/rakuten_web_service/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
# File 'lib/rakuten_web_service/configuration.rb', line 5

def initialize
  @max_retries = 5
end

Instance Attribute Details

#affiliate_idObject

Returns the value of attribute affiliate_id.



3
4
5
# File 'lib/rakuten_web_service/configuration.rb', line 3

def affiliate_id
  @affiliate_id
end

#application_idObject

Returns the value of attribute application_id.



3
4
5
# File 'lib/rakuten_web_service/configuration.rb', line 3

def application_id
  @application_id
end

#max_retriesObject

Returns the value of attribute max_retries.



3
4
5
# File 'lib/rakuten_web_service/configuration.rb', line 3

def max_retries
  @max_retries
end

Instance Method Details

#generate_parametersObject



9
10
11
# File 'lib/rakuten_web_service/configuration.rb', line 9

def generate_parameters
  { :application_id => application_id, :affiliate_id => affiliate_id }
end