class Beaver::HolderReq
HolderReq
Model.
Attributes
address[RW]
TODO: Write general description for this method @return [AddressPaymentsReq]
email[RW]
TODO: Write general description for this method @return [String]
holder_name[RW]
The holder name as it appears on the credit card or bank account statement. Note: all printable characters accepted @return [String]
phone[RW]
The holder name as it appears on the credit card or bank account statement. Note: all printable characters accepted @return [Phone1]
Public Class Methods
from_hash(hash)
click to toggle source
Creates an instance of the object from a hash.
# File lib/beaver/models/holder_req.rb, line 50 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. address = AddressPaymentsReq.from_hash(hash['address']) if hash['address'] holder_name = hash['holder_name'] email = hash['email'] phone = Phone1.from_hash(hash['phone']) if hash['phone'] # Create object from extracted values. HolderReq.new(address, holder_name, email, phone) end
names()
click to toggle source
A mapping from model property names to API property names.
# File lib/beaver/models/holder_req.rb, line 30 def self.names @_hash = {} if @_hash.nil? @_hash['address'] = 'address' @_hash['email'] = 'email' @_hash['holder_name'] = 'holder_name' @_hash['phone'] = 'phone' @_hash end
new(address = nil, holder_name = nil, email = nil, phone = nil)
click to toggle source
# File lib/beaver/models/holder_req.rb, line 39 def initialize(address = nil, holder_name = nil, email = nil, phone = nil) @address = address @email = email @holder_name = holder_name @phone = phone end