class Beaver::CA1

CA1 Model.

Attributes

social_insurance_number_is_present[RW]

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

Public Class Methods

from_hash(hash) click to toggle source

Creates an instance of the object from a hash.

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

  # Extract variables from the hash.
  social_insurance_number_is_present =
    hash['social_insurance_number_is_present']

  # Create object from extracted values.
  CA1.new(social_insurance_number_is_present)
end
names() click to toggle source

A mapping from model property names to API property names.

# File lib/beaver/models/ca1.rb, line 14
def self.names
  @_hash = {} if @_hash.nil?
  @_hash['social_insurance_number_is_present'] =
    'social_insurance_number_is_present'
  @_hash
end
new(social_insurance_number_is_present = nil) click to toggle source
# File lib/beaver/models/ca1.rb, line 21
def initialize(social_insurance_number_is_present = nil)
  @social_insurance_number_is_present = social_insurance_number_is_present
end