Class: Io::Flow::V0::Models::ExperienceLogisticsTierSummaryPrices

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 = {}) ⇒ ExperienceLogisticsTierSummaryPrices

Returns a new instance of ExperienceLogisticsTierSummaryPrices.



22393
22394
22395
22396
22397
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22393

def initialize(incoming={})
  opts = HttpClient::Helper.symbolize_keys(incoming)
  HttpClient::Preconditions.require_keys(opts, [:minimum], 'ExperienceLogisticsTierSummaryPrices')
  @minimum = (x = opts.delete(:minimum); x.is_a?(::Io::Flow::V0::Models::Price) ? x : ::Io::Flow::V0::Models::Price.new(x))
end

Instance Attribute Details

#minimumObject (readonly)

Returns the value of attribute minimum.



22391
22392
22393
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22391

def minimum
  @minimum
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



22403
22404
22405
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22403

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

#to_hashObject



22407
22408
22409
22410
22411
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22407

def to_hash
  {
    :minimum => minimum.to_hash
  }
end

#to_jsonObject



22399
22400
22401
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22399

def to_json
  JSON.dump(to_hash)
end