Class: Io::Flow::V0::Clients::Links
- Inherits:
-
Object
- Object
- Io::Flow::V0::Clients::Links
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Method Summary collapse
- #get(carrier, organization, order_number) ⇒ Object
-
#initialize(client) ⇒ Links
constructor
A new instance of Links.
Constructor Details
#initialize(client) ⇒ Links
Returns a new instance of Links.
7360 7361 7362 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7360 def initialize(client) @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client) end |
Instance Method Details
#get(carrier, organization, order_number) ⇒ Object
7364 7365 7366 7367 7368 7369 7370 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 7364 def get(carrier, organization, order_number) HttpClient::Preconditions.assert_class('carrier', carrier, String) HttpClient::Preconditions.assert_class('organization', organization, String) HttpClient::Preconditions.assert_class('order_number', order_number, String) r = @client.request("/carrier/#{CGI.escape(carrier)}/data/#{CGI.escape(organization)}/#{CGI.escape(order_number)}").get r end |