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.



32279
32280
32281
32282
32283
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 32279

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.



32277
32278
32279
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 32277

def minimum
  @minimum
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



32289
32290
32291
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 32289

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

#to_hashObject



32293
32294
32295
32296
32297
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 32293

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

#to_jsonObject



32285
32286
32287
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 32285

def to_json
  JSON.dump(to_hash)
end