Class: Io::Flow::V0::Models::ChannelViesRegistrationForm
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::ChannelViesRegistrationForm
- 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 = {}) ⇒ ChannelViesRegistrationForm
constructor
A new instance of ChannelViesRegistrationForm.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ ChannelViesRegistrationForm
Returns a new instance of ChannelViesRegistrationForm.
35872 35873 35874 35875 35876 35877 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 35872 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:number], 'ChannelViesRegistrationForm') @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.
35870 35871 35872 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 35870 def company_name @company_name end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
35870 35871 35872 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 35870 def number @number end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
35883 35884 35885 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 35883 def copy(incoming={}) ChannelViesRegistrationForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
35887 35888 35889 35890 35891 35892 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 35887 def to_hash { :number => number, :company_name => company_name } end |
#to_json ⇒ Object
35879 35880 35881 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 35879 def to_json JSON.dump(to_hash) end |