Skip to content

Commit

Permalink
Added items to api calls
Browse files Browse the repository at this point in the history
  • Loading branch information
aldodelgado committed Jan 3, 2015
1 parent 3e154a2 commit 31da92e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions lib/square/connect/api/items.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
require 'square/utils/api'
#require 'square/connect/model/item'

module Square
module Connect
module API
module Items
include Square::Utils::API

# Provides summary information for all of a merchant's items.
#
# @see
# @note Authentication Required
# @raise [Square::Error::Unauthorized] Error raised when supplied user credentials are invalid.
# @return [Square::Connect::Items]
def items(merchant_id = 'me')
object_from_response(Square::Connect::Item, :get, "/#{merchant_id}/items")
end
end
end
end
end

0 comments on commit 31da92e

Please sign in to comment.