Class: Io::Flow::V0::Models::ExperienceLogisticsTierSummaryPrices
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::ExperienceLogisticsTierSummaryPrices
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#minimum ⇒ Object
readonly
Returns the value of attribute minimum.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ExperienceLogisticsTierSummaryPrices
constructor
A new instance of ExperienceLogisticsTierSummaryPrices.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ ExperienceLogisticsTierSummaryPrices
Returns a new instance of ExperienceLogisticsTierSummaryPrices.
42073 42074 42075 42076 42077 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 42073 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
#minimum ⇒ Object (readonly)
Returns the value of attribute minimum.
42071 42072 42073 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 42071 def minimum @minimum end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
42083 42084 42085 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 42083 def copy(incoming={}) ExperienceLogisticsTierSummaryPrices.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
42087 42088 42089 42090 42091 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 42087 def to_hash { :minimum => minimum.to_hash } end |
#to_json ⇒ Object
42079 42080 42081 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 42079 def to_json JSON.dump(to_hash) end |