Class: Vobject::Vcalendar::PropertyValue::Integer

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

Direct Known Subclasses

PercentComplete, Priority

Instance Attribute Summary

Attributes inherited from PropertyValue

#errors, #norm, #type, #value

Instance Method Summary collapse

Methods inherited from PropertyValue

#name, #to_norm

Constructor Details

#initialize(val) ⇒ Integer

Returns a new instance of Integer.



203
204
205
206
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 203

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

Instance Method Details

#<=>(another) ⇒ Object



199
200
201
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 199

def <=>(another)
  value <=> another.value
end

#to_hashObject



212
213
214
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 212

def to_hash
  value
end

#to_sObject



208
209
210
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 208

def to_s
  value.to_s
end