class PaymentsApi::Originator
Originator
Information Object
Attributes
address[RW]
Address
Information @return [Address]
name[RW]
Originator
Name @return [String]
Public Class Methods
from_hash(hash)
click to toggle source
Creates an instance of the object from a hash.
# File lib/payments_api/models/originator.rb, line 32 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. name = hash['name'] address = Address.from_hash(hash['address']) if hash['address'] # Create object from extracted values. Originator.new(name, address) end
names()
click to toggle source
A mapping from model property names to API property names.
# File lib/payments_api/models/originator.rb, line 18 def self.names @_hash = {} if @_hash.nil? @_hash['name'] = 'name' @_hash['address'] = 'address' @_hash end
new(name = nil, address = nil)
click to toggle source
# File lib/payments_api/models/originator.rb, line 25 def initialize(name = nil, address = nil) @name = name @address = address end