Class: Vcard::V4_0::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.
134
135
136
137
|
# File 'lib/vobject/vcard/v4_0/propertyvalue.rb', line 134
def initialize(val)
self.value = val
self.type = "integer"
end
|
Instance Method Details
#<=>(another) ⇒ Object
130
131
132
|
# File 'lib/vobject/vcard/v4_0/propertyvalue.rb', line 130
def <=>(another)
value <=> another.value
end
|
#to_hash ⇒ Object
143
144
145
|
# File 'lib/vobject/vcard/v4_0/propertyvalue.rb', line 143
def to_hash
value
end
|
#to_s ⇒ Object
139
140
141
|
# File 'lib/vobject/vcard/v4_0/propertyvalue.rb', line 139
def to_s
value.to_s
end
|