Class: Io::Flow::V0::Clients::EcommercePlatforms
- Inherits:
-
Object
- Object
- Io::Flow::V0::Clients::EcommercePlatforms
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Method Summary collapse
- #get(organization_id) ⇒ Object
-
#initialize(client) ⇒ EcommercePlatforms
constructor
A new instance of EcommercePlatforms.
Constructor Details
#initialize(client) ⇒ EcommercePlatforms
Returns a new instance of EcommercePlatforms.
5788 5789 5790 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5788 def initialize(client) @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client) end |
Instance Method Details
#get(organization_id) ⇒ Object
5792 5793 5794 5795 5796 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 5792 def get(organization_id) HttpClient::Preconditions.assert_class('organization_id', organization_id, String) r = @client.request("/organizations/#{CGI.escape(organization_id)}/ecommerce/platform").get ::Io::Flow::V0::Models::EcommercePlatform.new(r) end |