Class: Vobject::Vcalendar::PropertyValue::Boolean
Instance Attribute Summary
#errors, #norm, #type, #value
Instance Method Summary
collapse
#<=>, #name
Constructor Details
#initialize(val) ⇒ Boolean
Returns a new instance of Boolean.
333
334
335
336
|
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 333
def initialize(val)
self.value = val
self.type = "boolean"
end
|
Instance Method Details
#to_hash ⇒ Object
342
343
344
|
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 342
def to_hash
value
end
|
#to_norm ⇒ Object
346
347
348
|
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 346
def to_norm
value.to_s.upcase
end
|
#to_s ⇒ Object
338
339
340
|
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 338
def to_s
value.to_s
end
|