Class: Vobject::Vcalendar::PropertyValue::Integer
Instance Attribute Summary
#errors, #norm, #type, #value
Instance Method Summary
collapse
#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_hash ⇒ Object
212
213
214
|
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 212
def to_hash
value
end
|
#to_s ⇒ Object
208
209
210
|
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 208
def to_s
value.to_s
end
|