Class: Vobject::Vcalendar::PropertyValue::Geovalue

Inherits:
PropertyValue
  • Object
show all
Defined in:
lib/vobject/vcalendar/propertyvalue.rb

Instance Attribute Summary

Attributes inherited from PropertyValue

#errors, #norm, #type, #value

Instance Method Summary collapse

Methods inherited from PropertyValue

#<=>, #name, #to_norm

Constructor Details

#initialize(val) ⇒ Geovalue

Returns a new instance of Geovalue.



409
410
411
412
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 409

def initialize(val)
  self.value = val
  self.type = "geovalue"
end

Instance Method Details

#to_hashObject



419
420
421
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 419

def to_hash
  value
end

#to_sObject



414
415
416
417
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 414

def to_s
  ret = "#{value[:lat]};#{value[:long]}"
  ret
end