Class: Vcard::V3_0::PropertyValue::Geovalue

Inherits:
Vobject::PropertyValue show all
Defined in:
lib/vobject/vcard/v3_0/propertyvalue.rb

Instance Attribute Summary

Attributes inherited from Vobject::PropertyValue

#errors, #norm, #type, #value

Instance Method Summary collapse

Methods inherited from Vobject::PropertyValue

#<=>, #name, #to_norm

Constructor Details

#initialize(val) ⇒ Geovalue

Returns a new instance of Geovalue.



268
269
270
271
# File 'lib/vobject/vcard/v3_0/propertyvalue.rb', line 268

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

Instance Method Details

#to_hashObject



278
279
280
# File 'lib/vobject/vcard/v3_0/propertyvalue.rb', line 278

def to_hash
  value
end

#to_sObject



273
274
275
276
# File 'lib/vobject/vcard/v3_0/propertyvalue.rb', line 273

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