Class: Cb::Models::TalentNetwork::JoinFormGeoLocation
- Inherits:
-
Object
- Object
- Cb::Models::TalentNetwork::JoinFormGeoLocation
- Defined in:
- lib/cb/models/implementations/talent_network.rb
Instance Attribute Summary collapse
-
#geo_hash ⇒ Object
Returns the value of attribute geo_hash.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ JoinFormGeoLocation
constructor
A new instance of JoinFormGeoLocation.
Constructor Details
#initialize(args = {}) ⇒ JoinFormGeoLocation
Returns a new instance of JoinFormGeoLocation.
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 |
# 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 |
Instance Attribute Details
#geo_hash ⇒ Object
Returns the value of attribute geo_hash.
115 116 117 |
# File 'lib/cb/models/implementations/talent_network.rb', line 115 def geo_hash @geo_hash end |