Class: Io::Flow::V0::Clients::CustomerAddressBook
- Inherits:
-
Object
- Object
- Io::Flow::V0::Clients::CustomerAddressBook
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Method Summary collapse
-
#get(organization, number) ⇒ Object
Retrieve customer addrress book.
-
#initialize(client) ⇒ CustomerAddressBook
constructor
A new instance of CustomerAddressBook.
Constructor Details
#initialize(client) ⇒ CustomerAddressBook
Returns a new instance of CustomerAddressBook.
6432 6433 6434 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6432 def initialize(client) @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client) end |
Instance Method Details
#get(organization, number) ⇒ Object
Retrieve customer addrress book.
6437 6438 6439 6440 6441 6442 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6437 def get(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)}/addresses/book").get ::Io::Flow::V0::Models::CustomerAddressBook.new(r) end |