Class: Cloverrb::Properties

Inherits:
Client
  • Object
show all
Defined in:
lib/cloverrb/properties.rb

Constant Summary

Constants inherited from Client

Client::AUTH_URL, Client::BASE_URL

Instance Method Summary collapse

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

#fetchObject



8
9
10
11
# File 'lib/cloverrb/properties.rb', line 8

def fetch
  url = "/merchants/#{@merchant_code}/properties"
  get(@token, url)
end