Class: Vobject::Vcalendar::PropertyValue::Priority

Inherits:
Integer 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 Integer

#<=>, #to_s

Methods inherited from PropertyValue

#<=>, #name, #to_norm, #to_s

Constructor Details

#initialize(val) ⇒ Priority

Returns a new instance of Priority.



229
230
231
232
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 229

def initialize(val)
  self.value = val
  self.type = "priority"
end

Instance Method Details

#to_hashObject



234
235
236
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 234

def to_hash
  value
end