class Ingenico::Connect::SDK::Domain::Definitions::CompanyInformation
@attr [String] name @attr [String] vat_number
Attributes
name[RW]
vat_number[RW]
Public Instance Methods
from_hash(hash)
click to toggle source
Calls superclass method
Ingenico::Connect::SDK::DataObject#from_hash
# File lib/ingenico/connect/sdk/domain/definitions/company_information.rb, line 27 def from_hash(hash) super if hash.has_key? 'name' @name = hash['name'] end if hash.has_key? 'vatNumber' @vat_number = hash['vatNumber'] end end
to_h()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Connect::SDK::DataObject#to_h
# File lib/ingenico/connect/sdk/domain/definitions/company_information.rb, line 20 def to_h hash = super hash['name'] = @name unless @name.nil? hash['vatNumber'] = @vat_number unless @vat_number.nil? hash end