class Beaver::PersonalVerification5

PersonalVerification5 Model.

Attributes

current_issues[RW]

TODO: Write general description for this method @return [List of CurrentIssue2]

documents[RW]

TODO: Write general description for this method @return [List of Document]

verified[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/personal_verification5.rb, line 39
def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  verified = hash['verified']
  # Parameter is an array, so we need to iterate through it
  current_issues = nil
  unless hash['current_issues'].nil?
    current_issues = []
    hash['current_issues'].each do |structure|
      current_issues << (CurrentIssue2.from_hash(structure) if structure)
    end
  end
  # Parameter is an array, so we need to iterate through it
  documents = nil
  unless hash['documents'].nil?
    documents = []
    hash['documents'].each do |structure|
      documents << (Document.from_hash(structure) if structure)
    end
  end

  # Create object from extracted values.
  PersonalVerification5.new(verified,
                            current_issues,
                            documents)
end
names() click to toggle source

A mapping from model property names to API property names.

# File lib/beaver/models/personal_verification5.rb, line 22
def self.names
  @_hash = {} if @_hash.nil?
  @_hash['current_issues'] = 'current_issues'
  @_hash['documents'] = 'documents'
  @_hash['verified'] = 'verified'
  @_hash
end
new(verified = nil, current_issues = nil, documents = nil) click to toggle source
# File lib/beaver/models/personal_verification5.rb, line 30
def initialize(verified = nil,
               current_issues = nil,
               documents = nil)
  @current_issues = current_issues
  @documents = documents
  @verified = verified
end