Module: Dmm::API::Items

Included in:
Client
Defined in:
lib/dmm/api/items.rb

Instance Method Summary collapse

Instance Method Details

#item_list(options = {}) ⇒ Dmm::Response

Returns a Dmm::Response object

Parameters:

  • options (Hash) (defaults to: {})

Returns:

Raises:



13
14
15
16
17
# File 'lib/dmm/api/items.rb', line 13

def item_list(options={})
  res = Hash.from_xml(get('/', params(options)))
  raise Dmm::Error, error_message(res) if res[:response][:result][:errors]
  Dmm::Response.new(res)
end