class Beaver::GB
GB
Model.
Attributes
company_registration_number[RW]
TODO: Write general description for this method @return [String]
legal_form[RW]
TODO: Write general description for this method @return [LegalForm1Enum]
Public Class Methods
from_hash(hash)
click to toggle source
Creates an instance of the object from a hash.
# File lib/beaver/models/gb.rb, line 32 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. company_registration_number = hash['company_registration_number'] legal_form = hash['legal_form'] # Create object from extracted values. GB.new(company_registration_number, legal_form) end
names()
click to toggle source
A mapping from model property names to API property names.
# File lib/beaver/models/gb.rb, line 18 def self.names @_hash = {} if @_hash.nil? @_hash['company_registration_number'] = 'company_registration_number' @_hash['legal_form'] = 'legal_form' @_hash end
new(company_registration_number = nil, legal_form = nil)
click to toggle source
# File lib/beaver/models/gb.rb, line 25 def initialize(company_registration_number = nil, legal_form = nil) @company_registration_number = company_registration_number @legal_form = legal_form end