class Beaver::LegalEntityResp
LegalEntityResp
Model.
Attributes
TODO: Write general description for this method @return [AdditionalRepresentativesResp]
TODO: Write general description for this method @return [AddressLegalEntitiesNullable]
TODO: Write general description for this method @return [String]
TODO: Write general description for this method @return [ControllerResp]
TODO: Write general description for this method @return [CountryCodeEnum]
TODO: Write general description for this method @return [Integer]
TODO: Write general description for this method @return [Object]
TODO: Write general description for this method @return [String]
TODO: Write general description for this method @return [EntityCountryInfo]
TODO: Write general description for this method @return [String]
TODO: Write general description for this method @return [String]
TODO: Write general description for this method @return [OwnerApplications]
TODO: Write general description for this method @return [String]
TODO: Write general description for this method @return [PhoneLegalEntitiesNullable]
TODO: Write general description for this method @return [String]
TODO: Write general description for this method @return [String]
TODO: Write general description for this method @return [String]
TODO: Write general description for this method @return [TermsOfService]
Public Class Methods
Creates an instance of the object from a hash.
# File lib/beaver/models/legal_entity_resp.rb, line 144 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. create_time = hash['create_time'] id = hash['id'] owner = OwnerApplications.from_hash(hash['owner']) if hash['owner'] path = hash['path'] resource = hash['resource'] api_version = hash['api_version'] if hash['additional_representatives'] additional_representatives = AdditionalRepresentativesResp.from_hash(hash['additional_representatives']) end address = AddressLegalEntitiesNullable.from_hash(hash['address']) if hash['address'] controller = ControllerResp.from_hash(hash['controller']) if hash['controller'] country = hash['country'] custom_data = hash['custom_data'] description = hash['description'] if hash['entity_country_info'] entity_country_info = EntityCountryInfo.from_hash(hash['entity_country_info']) end entity_name = hash['entity_name'] phone = PhoneLegalEntitiesNullable.from_hash(hash['phone']) if hash['phone'] primary_url = hash['primary_url'] terms_of_service = TermsOfService.from_hash(hash['terms_of_service']) if hash['terms_of_service'] reference_id = hash['reference_id'] # Create object from extracted values. LegalEntityResp.new(create_time, id, owner, path, resource, api_version, additional_representatives, address, controller, country, custom_data, description, entity_country_info, entity_name, phone, primary_url, terms_of_service, reference_id) end
A mapping from model property names to API property names.
# File lib/beaver/models/legal_entity_resp.rb, line 82 def self.names @_hash = {} if @_hash.nil? @_hash['additional_representatives'] = 'additional_representatives' @_hash['address'] = 'address' @_hash['controller'] = 'controller' @_hash['country'] = 'country' @_hash['create_time'] = 'create_time' @_hash['custom_data'] = 'custom_data' @_hash['description'] = 'description' @_hash['entity_country_info'] = 'entity_country_info' @_hash['entity_name'] = 'entity_name' @_hash['id'] = 'id' @_hash['owner'] = 'owner' @_hash['path'] = 'path' @_hash['phone'] = 'phone' @_hash['primary_url'] = 'primary_url' @_hash['resource'] = 'resource' @_hash['terms_of_service'] = 'terms_of_service' @_hash['api_version'] = 'api_version' @_hash['reference_id'] = 'reference_id' @_hash end
# File lib/beaver/models/legal_entity_resp.rb, line 105 def initialize(create_time = nil, id = nil, owner = nil, path = nil, resource = nil, api_version = nil, additional_representatives = nil, address = nil, controller = nil, country = nil, custom_data = nil, description = nil, entity_country_info = nil, entity_name = nil, phone = nil, primary_url = nil, terms_of_service = nil, reference_id = nil) @additional_representatives = additional_representatives @address = address @controller = controller @country = country @create_time = create_time @custom_data = custom_data @description = description @entity_country_info = entity_country_info @entity_name = entity_name @id = id @owner = owner @path = path @phone = phone @primary_url = primary_url @resource = resource @terms_of_service = terms_of_service @api_version = api_version @reference_id = reference_id end