class Io::Flow::V0::Models::ShippingConfigurationSummary
Attributes
id[R]
key[R]
name[R]
type[R]
Public Class Methods
new(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 66315 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:id, :name, :key, :type], 'ShippingConfigurationSummary') @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String) @name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String) @key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String) @type = (x = opts.delete(:type); x.is_a?(::Io::Flow::V0::Models::ShippingConfigurationType) ? x : ::Io::Flow::V0::Models::ShippingConfigurationType.apply(x)) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 66328 def copy(incoming={}) ShippingConfigurationSummary.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 66332 def to_hash { :id => id, :name => name, :key => key, :type => type.value } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 66324 def to_json JSON.dump(to_hash) end