class Beaver::AdditionalRepresentativesReq

AdditionalRepresentativesReq Model.

Attributes

representative_0[RW]

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

representative_1[RW]

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

representative_2[RW]

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

representative_3[RW]

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

Public Class Methods

from_hash(hash) click to toggle source

Creates an instance of the object from a hash.

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

  # Extract variables from the hash.
  if hash['representative_0']
    representative_0 = AdditionalRepresentativeReq.from_hash(hash['representative_0'])
  end
  if hash['representative_1']
    representative_1 = AdditionalRepresentativeReq.from_hash(hash['representative_1'])
  end
  if hash['representative_2']
    representative_2 = AdditionalRepresentativeReq.from_hash(hash['representative_2'])
  end
  if hash['representative_3']
    representative_3 = AdditionalRepresentativeReq.from_hash(hash['representative_3'])
  end

  # Create object from extracted values.
  AdditionalRepresentativesReq.new(representative_0,
                                   representative_1,
                                   representative_2,
                                   representative_3)
end
names() click to toggle source

A mapping from model property names to API property names.

# File lib/beaver/models/additional_representatives_req.rb, line 26
def self.names
  @_hash = {} if @_hash.nil?
  @_hash['representative_0'] = 'representative_0'
  @_hash['representative_1'] = 'representative_1'
  @_hash['representative_2'] = 'representative_2'
  @_hash['representative_3'] = 'representative_3'
  @_hash
end
new(representative_0 = nil, representative_1 = nil, representative_2 = nil, representative_3 = nil) click to toggle source
# File lib/beaver/models/additional_representatives_req.rb, line 35
def initialize(representative_0 = nil,
               representative_1 = nil,
               representative_2 = nil,
               representative_3 = nil)
  @representative_0 = representative_0
  @representative_1 = representative_1
  @representative_2 = representative_2
  @representative_3 = representative_3
end