Class: Io::Flow::V0::Clients::CustomerBundles
- Inherits:
-
Object
- Object
- Io::Flow::V0::Clients::CustomerBundles
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Method Summary collapse
-
#get_bundle_by_number(organization, number) ⇒ Object
Returns information about a specific customer.
-
#initialize(client) ⇒ CustomerBundles
constructor
A new instance of CustomerBundles.
Constructor Details
#initialize(client) ⇒ CustomerBundles
Returns a new instance of CustomerBundles.
6510 6511 6512 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6510 def initialize(client) @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client) end |
Instance Method Details
#get_bundle_by_number(organization, number) ⇒ Object
Returns information about a specific customer.
6515 6516 6517 6518 6519 6520 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6515 def get_bundle_by_number(organization, number) HttpClient::Preconditions.assert_class('organization', organization, String) HttpClient::Preconditions.assert_class('number', number, String) r = @client.request("/#{CGI.escape(organization)}/customers/#{CGI.escape(number)}/bundle").get ::Io::Flow::V0::Models::CustomerBundle.new(r) end |