class Beaver::US1

US1 Model.

Attributes

social_security_number_is_present[RW]

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

social_security_number_last_four_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/us1.rb, line 35
def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  social_security_number_is_present =
    hash['social_security_number_is_present']
  social_security_number_last_four_is_present =
    hash['social_security_number_last_four_is_present']

  # Create object from extracted values.
  US1.new(social_security_number_is_present,
          social_security_number_last_four_is_present)
end
names() click to toggle source

A mapping from model property names to API property names.

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