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