class Beaver::IncomingPaymentsResp
IncomingPaymentsResp
Model.
Attributes
accepted_methods[RW]
TODO: Write general description for this method @return [List of String]
opted_out_methods[RW]
TODO: Write general description for this method @return [OptedOutMethods]
Public Class Methods
from_hash(hash)
click to toggle source
Creates an instance of the object from a hash.
# File lib/beaver/models/incoming_payments_resp.rb, line 32 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. accepted_methods = hash['accepted_methods'] if hash['opted_out_methods'] opted_out_methods = OptedOutMethods.from_hash(hash['opted_out_methods']) end # Create object from extracted values. IncomingPaymentsResp.new(accepted_methods, opted_out_methods) end
names()
click to toggle source
A mapping from model property names to API property names.
# File lib/beaver/models/incoming_payments_resp.rb, line 18 def self.names @_hash = {} if @_hash.nil? @_hash['accepted_methods'] = 'accepted_methods' @_hash['opted_out_methods'] = 'opted_out_methods' @_hash end
new(accepted_methods = nil, opted_out_methods = nil)
click to toggle source
# File lib/beaver/models/incoming_payments_resp.rb, line 25 def initialize(accepted_methods = nil, opted_out_methods = nil) @accepted_methods = accepted_methods @opted_out_methods = opted_out_methods end