class Beaver::HolderResp
HolderResp
Model.
Attributes
address[RW]
TODO: Write general description for this method @return [AddressPaymentsResp]
email[RW]
TODO: Write general description for this method @return [String]
holder_name[RW]
TODO: Write general description for this method @return [String]
phone[RW]
TODO: Write general description for this method @return [Phone]
Public Class Methods
from_hash(hash)
click to toggle source
Creates an instance of the object from a hash.
# File lib/beaver/models/holder_resp.rb, line 46 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. holder_name = hash['holder_name'] address = AddressPaymentsResp.from_hash(hash['address']) if hash['address'] email = hash['email'] phone = Phone.from_hash(hash['phone']) if hash['phone'] # Create object from extracted values. HolderResp.new(holder_name, address, email, phone) end
names()
click to toggle source
A mapping from model property names to API property names.
# File lib/beaver/models/holder_resp.rb, line 26 def self.names @_hash = {} if @_hash.nil? @_hash['address'] = 'address' @_hash['email'] = 'email' @_hash['holder_name'] = 'holder_name' @_hash['phone'] = 'phone' @_hash end
new(holder_name = nil, address = nil, email = nil, phone = nil)
click to toggle source
# File lib/beaver/models/holder_resp.rb, line 35 def initialize(holder_name = nil, address = nil, email = nil, phone = nil) @address = address @email = email @holder_name = holder_name @phone = phone end