Class: Io::Flow::V0::Clients::PriceBookItemExportOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ PriceBookItemExportOptions

Returns a new instance of PriceBookItemExportOptions.



7620
7621
7622
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7620

def initialize(client)
  @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client)
end

Instance Method Details

#get(organization) ⇒ Object



7624
7625
7626
7627
7628
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7624

def get(organization)
  HttpClient::Preconditions.assert_class('organization', organization, String)
  r = @client.request("/#{CGI.escape(organization)}/export/options/price_book_item").get
  ::Io::Flow::V0::Models::PriceBookItemExportOptions.new(r)
end