Class: Vcard::V3_0::PropertyValue::Version

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) ⇒ Version

Returns a new instance of Version.



284
285
286
287
# File 'lib/vobject/vcard/v3_0/propertyvalue.rb', line 284

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

Instance Method Details

#to_hashObject



293
294
295
# File 'lib/vobject/vcard/v3_0/propertyvalue.rb', line 293

def to_hash
  value
end

#to_sObject



289
290
291
# File 'lib/vobject/vcard/v3_0/propertyvalue.rb', line 289

def to_s
  value
end