class Beaver::AdditionalRepresentativesResp
Attributes
representative_0[RW]
TODO: Write general description for this method @return [AdditionalRepresentativeResp]
representative_1[RW]
TODO: Write general description for this method @return [AdditionalRepresentativeResp]
representative_2[RW]
TODO: Write general description for this method @return [AdditionalRepresentativeResp]
representative_3[RW]
TODO: Write general description for this method @return [AdditionalRepresentativeResp]
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_resp.rb, line 46 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. if hash['representative_0'] representative_0 = AdditionalRepresentativeResp.from_hash(hash['representative_0']) end if hash['representative_1'] representative_1 = AdditionalRepresentativeResp.from_hash(hash['representative_1']) end if hash['representative_2'] representative_2 = AdditionalRepresentativeResp.from_hash(hash['representative_2']) end if hash['representative_3'] representative_3 = AdditionalRepresentativeResp.from_hash(hash['representative_3']) end # Create object from extracted values. AdditionalRepresentativesResp.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_resp.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_resp.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