Class: Vcard::V3_0::PropertyValue::Geovalue
Instance Attribute Summary
#errors, #norm, #type, #value
Instance Method Summary
collapse
#<=>, #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_hash ⇒ Object
278
279
280
|
# File 'lib/vobject/vcard/v3_0/propertyvalue.rb', line 278
def to_hash
value
end
|
#to_s ⇒ Object
273
274
275
276
|
# File 'lib/vobject/vcard/v3_0/propertyvalue.rb', line 273
def to_s
ret = "#{value[:lat]};#{value[:long]}"
ret
end
|