class Vobject::Vcalendar::PropertyValue::Utcoffset

Public Class Methods

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

Public Instance Methods

to_hash() click to toggle source
# File lib/vobject/vcalendar/propertyvalue.rb, line 403
def to_hash
  value
end
to_s() click to toggle source
# File lib/vobject/vcalendar/propertyvalue.rb, line 397
def to_s
  ret = "#{value[:sign]}#{value[:hr]}#{value[:min]}"
  ret += value[:sec] if value[:sec]
  ret
end