class Vobject::Vcalendar::PropertyValue::Time

Public Class Methods

new(val) click to toggle source
# File lib/vobject/vcalendar/propertyvalue.rb, line 375
def initialize(val)
  self.value = val
  self.type = "time"
end

Public Instance Methods

to_hash() click to toggle source
# File lib/vobject/vcalendar/propertyvalue.rb, line 386
def to_hash
  value
end
to_s() click to toggle source
# File lib/vobject/vcalendar/propertyvalue.rb, line 380
def to_s
  ret = "#{value[:hour]}#{value[:min]}#{value[:sec]}"
  ret = ret + "Z" if value[:utc]
  ret
end