Class: Vcard::V4_0::PropertyValue::Version

Inherits:
Vobject::PropertyValue show all
Defined in:
lib/vobject/vcard/v4_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) ⇒ Version

Returns a new instance of Version.



301
302
303
304
# File 'lib/vobject/vcard/v4_0/propertyvalue.rb', line 301

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

Instance Method Details

#to_hashObject



310
311
312
# File 'lib/vobject/vcard/v4_0/propertyvalue.rb', line 310

def to_hash
  value
end

#to_sObject



306
307
308
# File 'lib/vobject/vcard/v4_0/propertyvalue.rb', line 306

def to_s
  value
end