class Beaver::LegalEntitiesVerificationsResponse

LegalEntitiesVerificationsResponse Model.

Attributes

additional_representatives[RW]

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

api_version[RW]

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

controller[RW]

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

entity_verification[RW]

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

id[RW]

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

owner[RW]

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

path[RW]

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

resource[RW]

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

Public Class Methods

from_hash(hash) click to toggle source

Creates an instance of the object from a hash.

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

  # Extract variables from the hash.
  if hash['additional_representatives']
    additional_representatives = AdditionalRepresentatives1.from_hash(hash['additional_representatives'])
  end
  controller = Controller1.from_hash(hash['controller']) if
    hash['controller']
  if hash['entity_verification']
    entity_verification = EntityVerification1.from_hash(hash['entity_verification'])
  end
  owner = OwnerLegalEntities.from_hash(hash['owner']) if hash['owner']
  path = hash['path']
  resource = hash['resource']
  api_version = hash['api_version']
  id = hash['id']

  # Create object from extracted values.
  LegalEntitiesVerificationsResponse.new(additional_representatives,
                                         controller,
                                         entity_verification,
                                         owner,
                                         path,
                                         resource,
                                         api_version,
                                         id)
end
names() click to toggle source

A mapping from model property names to API property names.

# File lib/beaver/models/legal_entities_verifications_response.rb, line 42
def self.names
  @_hash = {} if @_hash.nil?
  @_hash['additional_representatives'] = 'additional_representatives'
  @_hash['controller'] = 'controller'
  @_hash['entity_verification'] = 'entity_verification'
  @_hash['id'] = 'id'
  @_hash['owner'] = 'owner'
  @_hash['path'] = 'path'
  @_hash['resource'] = 'resource'
  @_hash['api_version'] = 'api_version'
  @_hash
end
new(additional_representatives = nil, controller = nil, entity_verification = nil, owner = nil, path = nil, resource = nil, api_version = nil, id = nil) click to toggle source
# File lib/beaver/models/legal_entities_verifications_response.rb, line 55
def initialize(additional_representatives = nil,
               controller = nil,
               entity_verification = nil,
               owner = nil,
               path = nil,
               resource = nil,
               api_version = nil,
               id = nil)
  @additional_representatives = additional_representatives
  @controller = controller
  @entity_verification = entity_verification
  @id = id
  @owner = owner
  @path = path
  @resource = resource
  @api_version = api_version
end