Class: Io::Flow::V0::Models::ShippingLaneDefaultTierForm
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::ShippingLaneDefaultTierForm
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#tier_id ⇒ Object
readonly
Returns the value of attribute tier_id.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ShippingLaneDefaultTierForm
constructor
A new instance of ShippingLaneDefaultTierForm.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ ShippingLaneDefaultTierForm
Returns a new instance of ShippingLaneDefaultTierForm.
66776 66777 66778 66779 66780 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 66776 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:tier_id], 'ShippingLaneDefaultTierForm') @tier_id = HttpClient::Preconditions.assert_class('tier_id', opts.delete(:tier_id), String) end |
Instance Attribute Details
#tier_id ⇒ Object (readonly)
Returns the value of attribute tier_id.
66774 66775 66776 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 66774 def tier_id @tier_id end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
66786 66787 66788 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 66786 def copy(incoming={}) ShippingLaneDefaultTierForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
66790 66791 66792 66793 66794 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 66790 def to_hash { :tier_id => tier_id } end |
#to_json ⇒ Object
66782 66783 66784 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 66782 def to_json JSON.dump(to_hash) end |