Class: RakutenApi::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



18
19
20
21
22
23
24
25
# File 'lib/rakuten_api/configuration.rb', line 18

def initialize
  @application_id = nil
  @affiliate_id = nil
  @invalid_params_action = :stdout
  @genre_model = 'RakutenApi::DummyModule'
  @item_model = 'RakutenApi::DummyModule'
  @item_ranking_module = 'RakutenApi::DummyModule'
end

Instance Attribute Details

#affiliate_idObject

rakuten affiliate_id



8
9
10
# File 'lib/rakuten_api/configuration.rb', line 8

def affiliate_id
  @affiliate_id
end

#application_idObject

rakuten application_id (You can get from webservice.rakuten.co.jp/app/create)



6
7
8
# File 'lib/rakuten_api/configuration.rb', line 6

def application_id
  @application_id
end

#genre_modelObject

RakutenApi::GenreSearch::Model include Module



12
13
14
# File 'lib/rakuten_api/configuration.rb', line 12

def genre_model
  @genre_model
end

#invalid_params_actionObject

behavior when passed an invalid params



10
11
12
# File 'lib/rakuten_api/configuration.rb', line 10

def invalid_params_action
  @invalid_params_action
end

#item_modelObject

RakutenApi::ItemSearch::Model include Module



14
15
16
# File 'lib/rakuten_api/configuration.rb', line 14

def item_model
  @item_model
end

#item_ranking_moduleObject

RakutenApi::ItemRanking::Model include Module



16
17
18
# File 'lib/rakuten_api/configuration.rb', line 16

def item_ranking_module
  @item_ranking_module
end