Class: RakutenApi::GenreSearch::Client
- Inherits:
-
Base::Client
- Object
- Base::Client
- RakutenApi::GenreSearch::Client
- Defined in:
- lib/rakuten_api/genre_search/client.rb
Defined Under Namespace
Classes: Params
Constant Summary collapse
- REQUEST_PATH =
"/services/api/IchibaGenre/Search/20120723"
Class Method Summary collapse
-
.root_categories(application_id = nil, affiliate_id = nil) ⇒ Array<RakutenApi::GenreSearch::Model>
get rakuten root genres.
Instance Method Summary collapse
Methods inherited from Base::Client
#add_param, #connection, #initialize, #new_connection, #params
Constructor Details
This class inherits a constructor from RakutenApi::Base::Client
Class Method Details
.root_categories(application_id = nil, affiliate_id = nil) ⇒ Array<RakutenApi::GenreSearch::Model>
get rakuten root genres
20 21 22 23 24 25 26 |
# File 'lib/rakuten_api/genre_search/client.rb', line 20 def self.root_categories(application_id = nil, affiliate_id = nil) response = self.new(application_id, affiliate_id) do |params| params.add_param :genre_id, 0 end.request raise ::RakutenApi::ServerError.new($response., $response.status) if response.error? response.children end |
Instance Method Details
#get ⇒ Object
8 9 10 |
# File 'lib/rakuten_api/genre_search/client.rb', line 8 def get connection.get(REQUEST_PATH, params) end |