class Beaver::PayoutBankCa

PayoutBankCa Model.

Attributes

account_type[RW]

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

last_four[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/payout_bank_ca.rb, line 32
def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  account_type = hash['account_type']
  last_four = hash['last_four']

  # Create object from extracted values.
  PayoutBankCa.new(account_type,
                   last_four)
end
names() click to toggle source

A mapping from model property names to API property names.

# File lib/beaver/models/payout_bank_ca.rb, line 18
def self.names
  @_hash = {} if @_hash.nil?
  @_hash['account_type'] = 'account_type'
  @_hash['last_four'] = 'last_four'
  @_hash
end
new(account_type = nil, last_four = nil) click to toggle source
# File lib/beaver/models/payout_bank_ca.rb, line 25
def initialize(account_type = nil,
               last_four = nil)
  @account_type = account_type
  @last_four = last_four
end