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.



24388
24389
24390
24391
24392
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24388

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.



24386
24387
24388
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24386

def outbound
  @outbound
end

#return_Object (readonly)

Returns the value of attribute return_.



24386
24387
24388
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24386

def return_
  @return_
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



24398
24399
24400
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24398

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

#to_hashObject



24402
24403
24404
24405
24406
24407
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24402

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

#to_jsonObject



24394
24395
24396
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24394

def to_json
  JSON.dump(to_hash)
end