Class: Io::Flow::V0::Models::ChannelViesRegistrationForm

Inherits:
Object
  • Object
show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (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

#numberObject (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_hashObject



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_jsonObject



35879
35880
35881
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 35879

def to_json
  JSON.dump(to_hash)
end