class Beaver::IncomingPaymentsReq

IncomingPaymentsReq Model.

Attributes

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_req.rb, line 25
def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  if hash['opted_out_methods']
    opted_out_methods = OptedOutMethods.from_hash(hash['opted_out_methods'])
  end

  # Create object from extracted values.
  IncomingPaymentsReq.new(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_req.rb, line 14
def self.names
  @_hash = {} if @_hash.nil?
  @_hash['opted_out_methods'] = 'opted_out_methods'
  @_hash
end
new(opted_out_methods = nil) click to toggle source
# File lib/beaver/models/incoming_payments_req.rb, line 20
def initialize(opted_out_methods = nil)
  @opted_out_methods = opted_out_methods
end