Class: Rcal::Value::Period::TimeTimePeriod
- Inherits:
-
Rcal::Value::Period
- Object
- Rcal::Value::Period
- Rcal::Value::Period::TimeTimePeriod
- Defined in:
- lib/rcal/value/period.rb
Constant Summary
Constant Summary
Constants inherited from Rcal::Value::Period
Instance Attribute Summary (collapse)
-
- (Object) end
readonly
Returns the value of attribute end.
Attributes inherited from Rcal::Value::Period
Instance Method Summary (collapse)
-
- (TimeTimePeriod) initialize(start, stop)
constructor
A new instance of TimeTimePeriod.
- - (Object) to_ical
Methods inherited from Rcal::Value::Period
Methods included from Rcal::Value
Constructor Details
- (TimeTimePeriod) initialize(start, stop)
A new instance of TimeTimePeriod
91 92 93 94 95 |
# File 'lib/rcal/value/period.rb', line 91 def initialize(start, stop) super(start) validate_date_time(stop) @end = stop end |
Instance Attribute Details
- (Object) end (readonly)
Returns the value of attribute end
89 90 91 |
# File 'lib/rcal/value/period.rb', line 89 def end @end end |
Instance Method Details
- (Object) to_ical
97 98 99 |
# File 'lib/rcal/value/period.rb', line 97 def to_ical start.to_ical + '/' + self.end.to_ical end |