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.
5909 5910 5911 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5909 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.
5914 5915 5916 5917 5918 5919 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5914 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 |