Class: Vobject::Vcalendar::PropertyValue::Boolean

Inherits:
PropertyValue
  • Object
show all
Defined in:
lib/vobject/vcalendar/propertyvalue.rb

Instance Attribute Summary

Attributes inherited from PropertyValue

#errors, #norm, #type, #value

Instance Method Summary collapse

Methods inherited from PropertyValue

#<=>, #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_hashObject



342
343
344
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 342

def to_hash
  value
end

#to_normObject



346
347
348
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 346

def to_norm
  value.to_s.upcase
end

#to_sObject



338
339
340
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 338

def to_s
  value.to_s
end