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