Method: Xero::Client#items

Defined in:
lib/xero/client.rb

#items(options = {}) ⇒ Object



32
33
34
35
36
# File 'lib/xero/client.rb', line 32

def items(options = {})
  response = self.connection.get(Xero::Models::Item.path, options)
  items = hash_from_response(response, 'Items')
  items.map { |item| Xero::Models::Item.new(item) }
end