class Beaver::US4

US4 Model.

Attributes

employer_identification_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/us4.rb, line 33
def self.from_hash(hash)
  return nil unless hash

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

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

A mapping from model property names to API property names.

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