Class: Io::Flow::V0::Models::ExperienceLogisticsSummary
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::ExperienceLogisticsSummary
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#outbound ⇒ Object
readonly
Returns the value of attribute outbound.
-
#return_ ⇒ Object
readonly
Returns the value of attribute return_.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ExperienceLogisticsSummary
constructor
A new instance of ExperienceLogisticsSummary.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ ExperienceLogisticsSummary
29562 29563 29564 29565 29566 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29562 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) @outbound = (x = opts.delete(:outbound); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ExperienceLogisticsTierSummary) ? x : ::Io::Flow::V0::Models::ExperienceLogisticsTierSummary.new(x))) @return_ = (x = opts.delete(:return); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ExperienceLogisticsTierSummary) ? x : ::Io::Flow::V0::Models::ExperienceLogisticsTierSummary.new(x))) end |
Instance Attribute Details
#outbound ⇒ Object (readonly)
Returns the value of attribute outbound.
29560 29561 29562 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29560 def outbound @outbound end |
#return_ ⇒ Object (readonly)
Returns the value of attribute return_.
29560 29561 29562 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29560 def return_ @return_ end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
29572 29573 29574 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29572 def copy(incoming={}) ExperienceLogisticsSummary.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
29576 29577 29578 29579 29580 29581 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29576 def to_hash { :outbound => outbound.nil? ? nil : outbound.to_hash, :return => return_.nil? ? nil : return_.to_hash } end |
#to_json ⇒ Object
29568 29569 29570 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29568 def to_json JSON.dump(to_hash) end |