Class: Io::Flow::V0::Models::OrderIdentifierForm
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::OrderIdentifierForm
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#order ⇒ Object
readonly
Returns the value of attribute order.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ OrderIdentifierForm
constructor
A new instance of OrderIdentifierForm.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ OrderIdentifierForm
Returns a new instance of OrderIdentifierForm.
21829 21830 21831 21832 21833 21834 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21829 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:order, :number], 'OrderIdentifierForm') @order = HttpClient::Preconditions.assert_class('order', opts.delete(:order), String) @number = HttpClient::Preconditions.assert_class('number', opts.delete(:number), String) end |
Instance Attribute Details
#number ⇒ Object (readonly)
Returns the value of attribute number.
21827 21828 21829 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21827 def number @number end |
#order ⇒ Object (readonly)
Returns the value of attribute order.
21827 21828 21829 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21827 def order @order end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
21840 21841 21842 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21840 def copy(incoming={}) OrderIdentifierForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
21844 21845 21846 21847 21848 21849 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21844 def to_hash { :order => order, :number => number } end |
#to_json ⇒ Object
21836 21837 21838 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21836 def to_json JSON.dump(to_hash) end |