Class: Genba::Client::Prices

Inherits:
Object
  • Object
show all
Defined in:
lib/genba/client/prices.rb

Overview

Prices client

Instance Method Summary collapse

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.
  )
  @client.rest_get_with_token('/prices', payload, headers)
end