class Vcard::V4_0::PropertyValue::Utcoffset
Public Class Methods
new(val)
click to toggle source
# File lib/vobject/vcard/v4_0/propertyvalue.rb, line 284 def initialize(val) self.value = val self.type = "utc-offset" end
Public Instance Methods
to_hash()
click to toggle source
# File lib/vobject/vcard/v4_0/propertyvalue.rb, line 295 def to_hash value end
to_s()
click to toggle source
# File lib/vobject/vcard/v4_0/propertyvalue.rb, line 289 def to_s ret = "#{value[:sign]}#{value[:hr]}#{value[:min]}" ret += value[:sec] if value[:sec] ret end