class Beaver::CA4

CA4 Model.

Attributes

business_number[RW]

TODO: Write general description for this method @return [String]

Public Class Methods

from_hash(hash) click to toggle source

Creates an instance of the object from a hash.

# File lib/beaver/models/ca4.rb, line 32
def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  business_number = hash['business_number']
  legal_form = hash['legal_form']

  # Create object from extracted values.
  CA4.new(business_number,
          legal_form)
end
names() click to toggle source

A mapping from model property names to API property names.

# File lib/beaver/models/ca4.rb, line 18
def self.names
  @_hash = {} if @_hash.nil?
  @_hash['business_number'] = 'business_number'
  @_hash['legal_form'] = 'legal_form'
  @_hash
end
new(business_number = nil, legal_form = nil) click to toggle source
# File lib/beaver/models/ca4.rb, line 25
def initialize(business_number = nil,
               legal_form = nil)
  @business_number = business_number
  @legal_form = legal_form
end