Class: Genba::Client::Prices
- Inherits:
-
Object
- Object
- Genba::Client::Prices
- Defined in:
- lib/genba/client/prices.rb
Overview
Prices client
Instance Method Summary collapse
- #get_prices(params = {}, headers = {}) ⇒ Object
-
#initialize(client) ⇒ Prices
constructor
A new instance of Prices.
Constructor Details
#initialize(client) ⇒ Prices
Returns a new instance of Prices.
7 8 9 |
# File 'lib/genba/client/prices.rb', line 7 def initialize(client) @client = client end |
Instance Method Details
#get_prices(params = {}, headers = {}) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/genba/client/prices.rb', line 11 def get_prices(params = {}, headers = {}) payload = params.merge( customerAccountId: @client.customer_account_id ) @client.rest_get_with_token('/prices', payload, headers) end |