Class: Io::Flow::V0::Models::ExperienceLogisticsSummary

Inherits:
Object
  • Object
show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(incoming = {}) ⇒ ExperienceLogisticsSummary

Returns a new instance of ExperienceLogisticsSummary.



31626
31627
31628
31629
31630
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31626

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

#outboundObject (readonly)

Returns the value of attribute outbound.



31624
31625
31626
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31624

def outbound
  @outbound
end

#return_Object (readonly)

Returns the value of attribute return_.



31624
31625
31626
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31624

def return_
  @return_
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



31636
31637
31638
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31636

def copy(incoming={})
  ExperienceLogisticsSummary.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
end

#to_hashObject



31640
31641
31642
31643
31644
31645
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31640

def to_hash
  {
    :outbound => outbound.nil? ? nil : outbound.to_hash,
    :return => return_.nil? ? nil : return_.to_hash
  }
end

#to_jsonObject



31632
31633
31634
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31632

def to_json
  JSON.dump(to_hash)
end