class Beaver::Payouts1

Payouts1 Model.

Attributes

application_block[RW]

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

Public Class Methods

from_hash(hash) click to toggle source

Creates an instance of the object from a hash.

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

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

  # Create object from extracted values.
  Payouts1.new(application_block)
end
names() click to toggle source

A mapping from model property names to API property names.

# File lib/beaver/models/payouts1.rb, line 14
def self.names
  @_hash = {} if @_hash.nil?
  @_hash['application_block'] = 'application_block'
  @_hash
end
new(application_block = nil) click to toggle source
# File lib/beaver/models/payouts1.rb, line 20
def initialize(application_block = nil)
  @application_block = application_block
end