class Beaver::ControllerResp
ControllerResp
Model.
Attributes
TODO: Write general description for this method @return [AddressLegalEntitiesNullable]
TODO: Write general description for this method @return [Boolean]
TODO: Write general description for this method @return [String]
TODO: Write general description for this method @return [Boolean]
TODO: Write general description for this method @return [Boolean]
TODO: Write general description for this method @return [String]
TODO: Write general description for this method @return [HumanNameFullNullable]
TODO: Write general description for this method @return [PersonalCountryInfo1]
TODO: Write general description for this method @return [PhoneLegalEntitiesNullable]
Public Class Methods
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
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
# 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