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.



25184
25185
25186
25187
25188
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 25184

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.



25182
25183
25184
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 25182

def minimum
  @minimum
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



25194
25195
25196
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 25194

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

#to_hashObject



25198
25199
25200
25201
25202
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 25198

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

#to_jsonObject



25190
25191
25192
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 25190

def to_json
  JSON.dump(to_hash)
end