class Vcard::V3_0::PropertyValue::Date
Public Class Methods
new(val)
click to toggle source
# File lib/vobject/vcard/v3_0/propertyvalue.rb, line 166 def initialize(val) self.value = val self.type = "date" end
Public Instance Methods
<=>(another)
click to toggle source
# File lib/vobject/vcard/v3_0/propertyvalue.rb, line 162 def <=>(another) value <=> another.value end
to_hash()
click to toggle source
# File lib/vobject/vcard/v3_0/propertyvalue.rb, line 175 def to_hash value end
to_s()
click to toggle source
# File lib/vobject/vcard/v3_0/propertyvalue.rb, line 171 def to_s sprintf("%04d-%02d-%02d", value[:year].to_i, value[:month].to_i, value[:day].to_i) end