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.
24205 24206 24207 24208 24209 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24205 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.
24203 24204 24205 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24203 def delivered_duty @delivered_duty end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
24215 24216 24217 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24215 def copy(incoming={}) ExperienceSettings.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
24219 24220 24221 24222 24223 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24219 def to_hash { :delivered_duty => delivered_duty.to_hash } end |
#to_json ⇒ Object
24211 24212 24213 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24211 def to_json JSON.dump(to_hash) end |