Class: Io::Flow::V0::Clients::SurchargeSettings
- Inherits:
-
Object
- Object
- Io::Flow::V0::Clients::SurchargeSettings
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Method Summary collapse
- #get_displays(organization) ⇒ Object
-
#initialize(client) ⇒ SurchargeSettings
constructor
A new instance of SurchargeSettings.
Constructor Details
#initialize(client) ⇒ SurchargeSettings
Returns a new instance of SurchargeSettings.
4966 4967 4968 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4966 def initialize(client) @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client) end |
Instance Method Details
#get_displays(organization) ⇒ Object
4970 4971 4972 4973 4974 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4970 def get_displays(organization) HttpClient::Preconditions.assert_class('organization', organization, String) r = @client.request("/#{CGI.escape(organization)}/surcharge/settings/displays").get r.map { |x| ::Io::Flow::V0::Models::SurchargeSettingDisplay.new(x) } end |