Class: Icalendar::Values::Integer
- Inherits:
-
Icalendar::Value
- Object
- SimpleDelegator
- Icalendar::Value
- Icalendar::Values::Integer
- Defined in:
- lib/icalendar/values/integer.rb
Instance Attribute Summary
Attributes inherited from Icalendar::Value
Instance Method Summary collapse
-
#initialize(value, params = {}) ⇒ Integer
constructor
A new instance of Integer.
- #value_ical ⇒ Object
Methods inherited from Icalendar::Value
#ical_param, #params_ical, #to_ical, #value, value_type, #value_type
Constructor Details
#initialize(value, params = {}) ⇒ Integer
Returns a new instance of Integer.
6 7 8 |
# File 'lib/icalendar/values/integer.rb', line 6 def initialize(value, params = {}) super value.to_i, params end |
Instance Method Details
#value_ical ⇒ Object
10 11 12 |
# File 'lib/icalendar/values/integer.rb', line 10 def value_ical value.to_s end |