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