Class: Io::Flow::V0::Models::TaxRegistrationForm
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::TaxRegistrationForm
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#company_name ⇒ Object
readonly
Returns the value of attribute company_name.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ TaxRegistrationForm
constructor
A new instance of TaxRegistrationForm.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ TaxRegistrationForm
Returns a new instance of TaxRegistrationForm.
62124 62125 62126 62127 62128 62129 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 62124 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:number], 'TaxRegistrationForm') @number = HttpClient::Preconditions.assert_class('number', opts.delete(:number), String) @company_name = (x = opts.delete(:company_name); x.nil? ? nil : HttpClient::Preconditions.assert_class('company_name', x, String)) end |
Instance Attribute Details
#company_name ⇒ Object (readonly)
Returns the value of attribute company_name.
62122 62123 62124 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 62122 def company_name @company_name end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
62122 62123 62124 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 62122 def number @number end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
62135 62136 62137 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 62135 def copy(incoming={}) TaxRegistrationForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
62139 62140 62141 62142 62143 62144 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 62139 def to_hash { :number => number, :company_name => company_name } end |
#to_json ⇒ Object
62131 62132 62133 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 62131 def to_json JSON.dump(to_hash) end |