Module: DisplayWords::Client::InventorySource

Included in:
DisplayWords::Client
Defined in:
lib/display_words/client/inventory_source.rb

Instance Method Summary collapse

Instance Method Details

#inventory_source(id) ⇒ Object



4
5
6
7
# File 'lib/display_words/client/inventory_source.rb', line 4

def inventory_source(id)
  response = get("/inventory-source/?id=#{id}")
  response['inventory-source']
end

#inventory_sources(start = 0, num = Client::DEFAULT_RESULT_LIMIT) ⇒ Object



9
10
11
12
# File 'lib/display_words/client/inventory_source.rb', line 9

def inventory_sources(start = 0, num = Client::DEFAULT_RESULT_LIMIT)
  response = get("/inventory-source?start_element=#{start}&num_elements=#{num}")
  response['inventory-sources']
end