Class: Cb::Models::TalentNetwork::JoinFormGeoLocation

Inherits:
Object
  • Object
show all
Defined in:
lib/cb/models/implementations/talent_network.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ JoinFormGeoLocation

Returns a new instance of JoinFormGeoLocation.



109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# File 'lib/cb/models/implementations/talent_network.rb', line 109

def initialize(args={})
  value = Array.new
  display_val = Array.new
  @geo_hash = Hash.new

  if args.has_key?('Value')
    args['Value'].each do |val|
      value << val
    end
  end

  if args.has_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

Instance Attribute Details

#geo_hashObject

Returns the value of attribute geo_hash.



107
108
109
# File 'lib/cb/models/implementations/talent_network.rb', line 107

def geo_hash
  @geo_hash
end