Class: Vcard::V4_0::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.
284
285
286
287
|
# File 'lib/vobject/vcard/v4_0/propertyvalue.rb', line 284
def initialize(val)
self.value = val
self.type = "utc-offset"
end
|
Instance Method Details
#to_hash ⇒ Object
295
296
297
|
# File 'lib/vobject/vcard/v4_0/propertyvalue.rb', line 295
def to_hash
value
end
|
#to_s ⇒ Object
289
290
291
292
293
|
# 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
|