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.



38854
38855
38856
38857
38858
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 38854

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.



38852
38853
38854
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 38852

def minimum
  @minimum
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



38864
38865
38866
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 38864

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

#to_hashObject



38868
38869
38870
38871
38872
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 38868

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

#to_jsonObject



38860
38861
38862
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 38860

def to_json
  JSON.dump(to_hash)
end