Class: Icalendar::Values::DateOrDateTime

Inherits:
Icalendar::Value show all
Defined in:
lib/icalendar/values/date_or_date_time.rb

Overview

DateOrDateTime can be used to set an attribute to either a Date or a DateTime value. It should not be used without also invoking the ‘call` method.

Constant Summary

Constants inherited from Icalendar::Value

Icalendar::Value::VALUE_TYPE_GSUB_REGEX_1, Icalendar::Value::VALUE_TYPE_GSUB_REGEX_2

Instance Attribute Summary

Attributes inherited from Icalendar::Value

#ical_params

Instance Method Summary collapse

Methods inherited from Icalendar::Value

#==, #ical_param, #initialize, #to_ical, #value, value_type

Constructor Details

This class inherits a constructor from Icalendar::Value

Instance Method Details

#callObject



8
9
10
# File 'lib/icalendar/values/date_or_date_time.rb', line 8

def call
  parsed
end

#params_icalObject



16
17
18
# File 'lib/icalendar/values/date_or_date_time.rb', line 16

def params_ical
  parsed.params_ical
end

#value_icalObject



12
13
14
# File 'lib/icalendar/values/date_or_date_time.rb', line 12

def value_ical
  parsed.value_ical
end