class Beaver::Controller1

Controller1 Model.

Attributes

personal_verification[RW]

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

Public Class Methods

from_hash(hash) click to toggle source

Creates an instance of the object from a hash.

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

  # Extract variables from the hash.
  if hash['personal_verification']
    personal_verification = PersonalVerification5.from_hash(hash['personal_verification'])
  end

  # Create object from extracted values.
  Controller1.new(personal_verification)
end
names() click to toggle source

A mapping from model property names to API property names.

# File lib/beaver/models/controller1.rb, line 14
def self.names
  @_hash = {} if @_hash.nil?
  @_hash['personal_verification'] = 'personal_verification'
  @_hash
end
new(personal_verification = nil) click to toggle source
# File lib/beaver/models/controller1.rb, line 20
def initialize(personal_verification = nil)
  @personal_verification = personal_verification
end