class Beaver::AdditionalRepresentatives1
AdditionalRepresentatives1
Model.
Attributes
representative_0[RW]
TODO: Write general description for this method @return [Representative01]
representative_1[RW]
TODO: Write general description for this method @return [Representative01]
representative_2[RW]
TODO: Write general description for this method @return [Representative01]
representative_3[RW]
TODO: Write general description for this method @return [Representative01]
Public Class Methods
from_hash(hash)
click to toggle source
Creates an instance of the object from a hash.
# File lib/beaver/models/additional_representatives1.rb, line 46 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. representative_0 = Representative01.from_hash(hash['representative_0']) if hash['representative_0'] representative_1 = Representative01.from_hash(hash['representative_1']) if hash['representative_1'] representative_2 = Representative01.from_hash(hash['representative_2']) if hash['representative_2'] representative_3 = Representative01.from_hash(hash['representative_3']) if hash['representative_3'] # Create object from extracted values. AdditionalRepresentatives1.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_representatives1.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_representatives1.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