Class: Io::Flow::V0::Models::ExperienceSettings
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::ExperienceSettings
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#delivered_duty ⇒ Object
readonly
Returns the value of attribute delivered_duty.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ExperienceSettings
constructor
A new instance of ExperienceSettings.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ ExperienceSettings
Returns a new instance of ExperienceSettings.
14210 14211 14212 14213 14214 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14210 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:delivered_duty], 'ExperienceSettings') @delivered_duty = (x = opts.delete(:delivered_duty); x.is_a?(::Io::Flow::V0::Models::DeliveredDutySetting) ? x : ::Io::Flow::V0::Models::DeliveredDutySetting.new(x)) end |
Instance Attribute Details
#delivered_duty ⇒ Object (readonly)
Returns the value of attribute delivered_duty.
14208 14209 14210 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14208 def delivered_duty @delivered_duty end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
14220 14221 14222 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14220 def copy(incoming={}) ExperienceSettings.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
14224 14225 14226 14227 14228 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14224 def to_hash { :delivered_duty => delivered_duty.to_hash } end |
#to_json ⇒ Object
14216 14217 14218 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 14216 def to_json JSON.dump(to_hash) end |