Module: DMM::Client::ItemList

Included in:
DMM::Client
Defined in:
lib/ruby-dmm/client/item_list.rb

Instance Method Summary collapse

Instance Method Details

#item_list(keyword = "", options = {}) ⇒ Object Also known as: items



8
9
10
11
12
13
14
# File 'lib/ruby-dmm/client/item_list.rb', line 8

def item_list(keyword="", options={})
  @params = @params.merge(:keyword => keyword).merge(options)
  @params[:operation] = OPERATION_ITEM_LIST
  response = get('/', @params)
  item_list = DMM::Response.new(response[:response])
  @params[:result_only] ? item_list.result : item_list
end