class Beaver::ControllerResp

ControllerResp Model.

Attributes

address[RW]

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

date_of_birth_is_present[RW]

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

email[RW]

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

email_is_verified[RW]

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

is_beneficial_owner[RW]

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

job_title[RW]

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

name[RW]

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

personal_country_info[RW]

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

phone[RW]

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

Public Class Methods

from_hash(hash) click to toggle source

Creates an instance of the object from a hash.

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

  # Extract variables from the hash.
  is_beneficial_owner = hash['is_beneficial_owner']
  address = AddressLegalEntitiesNullable.from_hash(hash['address']) if
    hash['address']
  date_of_birth_is_present = hash['date_of_birth_is_present']
  email = hash['email']
  email_is_verified = hash['email_is_verified']
  name = HumanNameFullNullable.from_hash(hash['name']) if hash['name']
  if hash['personal_country_info']
    personal_country_info = PersonalCountryInfo1.from_hash(hash['personal_country_info'])
  end
  phone = PhoneLegalEntitiesNullable.from_hash(hash['phone']) if
    hash['phone']
  job_title = hash['job_title']

  # Create object from extracted values.
  ControllerResp.new(is_beneficial_owner,
                     address,
                     date_of_birth_is_present,
                     email,
                     email_is_verified,
                     name,
                     personal_country_info,
                     phone,
                     job_title)
end
names() click to toggle source

A mapping from model property names to API property names.

# File lib/beaver/models/controller_resp.rb, line 46
def self.names
  @_hash = {} if @_hash.nil?
  @_hash['is_beneficial_owner'] = 'is_beneficial_owner'
  @_hash['address'] = 'address'
  @_hash['date_of_birth_is_present'] = 'date_of_birth_is_present'
  @_hash['email'] = 'email'
  @_hash['email_is_verified'] = 'email_is_verified'
  @_hash['name'] = 'name'
  @_hash['personal_country_info'] = 'personal_country_info'
  @_hash['phone'] = 'phone'
  @_hash['job_title'] = 'job_title'
  @_hash
end
new(is_beneficial_owner = nil, address = nil, date_of_birth_is_present = nil, email = nil, email_is_verified = nil, name = nil, personal_country_info = nil, phone = nil, job_title = nil) click to toggle source
# File lib/beaver/models/controller_resp.rb, line 60
def initialize(is_beneficial_owner = nil,
               address = nil,
               date_of_birth_is_present = nil,
               email = nil,
               email_is_verified = nil,
               name = nil,
               personal_country_info = nil,
               phone = nil,
               job_title = nil)
  @is_beneficial_owner = is_beneficial_owner
  @address = address
  @date_of_birth_is_present = date_of_birth_is_present
  @email = email
  @email_is_verified = email_is_verified
  @name = name
  @personal_country_info = personal_country_info
  @phone = phone
  @job_title = job_title
end