Class: Io::Flow::V0::Clients::ExperienceLogisticsSettings
- Inherits:
-
Object
- Object
- Io::Flow::V0::Clients::ExperienceLogisticsSettings
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Method Summary collapse
- #get(organization, experience_key) ⇒ Object
-
#initialize(client) ⇒ ExperienceLogisticsSettings
constructor
A new instance of ExperienceLogisticsSettings.
- #put(organization, experience_key, experience_logistics_settings_put_form) ⇒ Object
Constructor Details
#initialize(client) ⇒ ExperienceLogisticsSettings
Returns a new instance of ExperienceLogisticsSettings.
1397 1398 1399 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 1397 def initialize(client) @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client) end |
Instance Method Details
#get(organization, experience_key) ⇒ Object
1401 1402 1403 1404 1405 1406 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 1401 def get(organization, experience_key) HttpClient::Preconditions.assert_class('organization', organization, String) HttpClient::Preconditions.assert_class('experience_key', experience_key, String) r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(experience_key)}/settings/logistics").get ::Io::Flow::V0::Models::ExperienceLogisticsSettings.new(r) end |
#put(organization, experience_key, experience_logistics_settings_put_form) ⇒ Object
1408 1409 1410 1411 1412 1413 1414 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 1408 def put(organization, experience_key, experience_logistics_settings_put_form) HttpClient::Preconditions.assert_class('organization', organization, String) HttpClient::Preconditions.assert_class('experience_key', experience_key, String) (x = experience_logistics_settings_put_form; x.is_a?(::Io::Flow::V0::Models::ExperienceLogisticsSettingsPutForm) ? x : ::Io::Flow::V0::Models::ExperienceLogisticsSettingsPutForm.new(x)) r = @client.request("/#{CGI.escape(organization)}/experiences/#{CGI.escape(experience_key)}/settings/logistics").with_json(experience_logistics_settings_put_form.to_json).put ::Io::Flow::V0::Models::ExperienceLogisticsSettings.new(r) end |