Class: Cloverrb::Merchant
Constant Summary
Constants inherited from Client
Client::AUTH_URL, Client::BASE_URL
Instance Method Summary collapse
- #find(merchant_id) ⇒ Object
-
#initialize(token) ⇒ Merchant
constructor
A new instance of Merchant.
Methods inherited from Client
generate_access_token, #get, #post, #put
Constructor Details
#initialize(token) ⇒ Merchant
Returns a new instance of Merchant.
3 4 5 |
# File 'lib/cloverrb/merchant.rb', line 3 def initialize(token) @token = token end |
Instance Method Details
#find(merchant_id) ⇒ Object
7 8 9 10 |
# File 'lib/cloverrb/merchant.rb', line 7 def find(merchant_id) url = "/merchants/#{merchant_id}?expand=owner" get(@token, url) end |