Class: RakutenApi::ItemSearch::Client

Inherits:
Base::Client show all
Defined in:
lib/rakuten_api/item_search/client.rb

Defined Under Namespace

Classes: Params

Constant Summary collapse

REQUEST_PATH =
"/services/api/IchibaItem/Search/20120723"

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

Instance Method Details

#getObject



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

def get
  connection.get(REQUEST_PATH, params)
end

#init_params(application_id, affiliate_id) ⇒ Object



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

def init_params(application_id, affiliate_id)
  @params = Params.new(application_id, affiliate_id)
end

#requestObject



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

def request
  Response.new(get, params.clone)
end