Class: RakutenApi::Configuration
- Inherits:
-
Object
- Object
- RakutenApi::Configuration
- Defined in:
- lib/rakuten_api/configuration.rb
Instance Attribute Summary collapse
-
#affiliate_id ⇒ Object
rakuten affiliate_id.
-
#application_id ⇒ Object
rakuten application_id (You can get from webservice.rakuten.co.jp/app/create).
-
#genre_model ⇒ Object
RakutenApi::GenreSearch::Model include Module.
-
#invalid_params_action ⇒ Object
behavior when passed an invalid params.
-
#item_model ⇒ Object
RakutenApi::ItemSearch::Model include Module.
-
#item_ranking_module ⇒ Object
RakutenApi::ItemRanking::Model include Module.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_id ⇒ Object
rakuten affiliate_id
8 9 10 |
# File 'lib/rakuten_api/configuration.rb', line 8 def affiliate_id @affiliate_id end |
#application_id ⇒ Object
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_model ⇒ Object
RakutenApi::GenreSearch::Model include Module
12 13 14 |
# File 'lib/rakuten_api/configuration.rb', line 12 def genre_model @genre_model end |
#invalid_params_action ⇒ Object
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_model ⇒ Object
RakutenApi::ItemSearch::Model include Module
14 15 16 |
# File 'lib/rakuten_api/configuration.rb', line 14 def item_model @item_model end |
#item_ranking_module ⇒ Object
RakutenApi::ItemRanking::Model include Module
16 17 18 |
# File 'lib/rakuten_api/configuration.rb', line 16 def item_ranking_module @item_ranking_module end |