Class: Vobject::Vcalendar::PropertyValue::Utcoffset
Instance Attribute Summary
#errors, #norm, #type, #value
Instance Method Summary
collapse
#<=>, #name, #to_norm
Constructor Details
#initialize(val) ⇒ Utcoffset
Returns a new instance of Utcoffset.
392
393
394
395
|
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 392
def initialize(val)
self.value = val
self.type = "utcoffset"
end
|
Instance Method Details
#to_hash ⇒ Object
403
404
405
|
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 403
def to_hash
value
end
|
#to_s ⇒ Object
397
398
399
400
401
|
# 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
|