class Beaver::PaymentBankUs
PaymentBankUs
Model.
Attributes
account_holder[RW]
TODO: Write general description for this method @return [HolderResp]
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/payment_bank_us.rb, line 39 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. account_holder = HolderResp.from_hash(hash['account_holder']) if hash['account_holder'] account_type = hash['account_type'] last_four = hash['last_four'] # Create object from extracted values. PaymentBankUs.new(account_holder, account_type, last_four) end
names()
click to toggle source
A mapping from model property names to API property names.
# File lib/beaver/models/payment_bank_us.rb, line 22 def self.names @_hash = {} if @_hash.nil? @_hash['account_holder'] = 'account_holder' @_hash['account_type'] = 'account_type' @_hash['last_four'] = 'last_four' @_hash end
new(account_holder = nil, account_type = nil, last_four = nil)
click to toggle source
# File lib/beaver/models/payment_bank_us.rb, line 30 def initialize(account_holder = nil, account_type = nil, last_four = nil) @account_holder = account_holder @account_type = account_type @last_four = last_four end