class Cb::Models::TalentNetwork::JoinFormGeoLocation
Attributes
geo_hash[RW]
Public Class Methods
new(args = {})
click to toggle source
# File lib/cb/models/implementations/talent_network.rb, line 117 def initialize(args = {}) value = [] display_val = [] @geo_hash = {} if args.key?('Value') args['Value'].each do |val| value << val end end if args.key?('Display') args['Display'].each do |display| display_val << display end end unless value.nil? || display_val.nil? @geo_hash = convert_to_hash(display_val, value) end end
Private Instance Methods
convert_to_hash(keys, values)
click to toggle source
# File lib/cb/models/implementations/talent_network.rb, line 141 def convert_to_hash(keys, values) geo_hash = {} geo_hash = Hash[keys.zip(values)] geo_hash end