class Beaver::AccountsCapabilitiesRequest

AccountsCapabilitiesRequest Model.

Attributes

payments[RW]

TODO: Write general description for this method @return [Payments1]

payouts[RW]

TODO: Write general description for this method @return [Payouts1]

Public Class Methods

from_hash(hash) click to toggle source

Creates an instance of the object from a hash.

# File lib/beaver/models/accounts_capabilities_request.rb, line 32
def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  payments = Payments1.from_hash(hash['payments']) if hash['payments']
  payouts = Payouts1.from_hash(hash['payouts']) if hash['payouts']

  # Create object from extracted values.
  AccountsCapabilitiesRequest.new(payments,
                                  payouts)
end
names() click to toggle source

A mapping from model property names to API property names.

# File lib/beaver/models/accounts_capabilities_request.rb, line 18
def self.names
  @_hash = {} if @_hash.nil?
  @_hash['payments'] = 'payments'
  @_hash['payouts'] = 'payouts'
  @_hash
end
new(payments = nil, payouts = nil) click to toggle source
# File lib/beaver/models/accounts_capabilities_request.rb, line 25
def initialize(payments = nil,
               payouts = nil)
  @payments = payments
  @payouts = payouts
end