Class: Icalendar::Values::Uri
- Inherits:
-
Icalendar::Value
- Object
- SimpleDelegator
- Icalendar::Value
- Icalendar::Values::Uri
- Defined in:
- lib/icalendar/values/uri.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Icalendar::Value
Instance Method Summary collapse
-
#initialize(value, params = {}) ⇒ Uri
constructor
A new instance of Uri.
- #value_ical ⇒ Object
Methods inherited from Icalendar::Value
#ical_param, #params_ical, #to_ical, #value, value_type, #value_type
Constructor Details
#initialize(value, params = {}) ⇒ Uri
Returns a new instance of Uri.
8 9 10 11 |
# File 'lib/icalendar/values/uri.rb', line 8 def initialize(value, params = {}) parsed = URI.parse(value) rescue value super parsed, params end |
Instance Method Details
#value_ical ⇒ Object
13 14 15 |
# File 'lib/icalendar/values/uri.rb', line 13 def value_ical value.to_s end |