Parent

RiCal::PropertyValue::Duration

 RiCal::PropertyValue::CalAddress represents an icalendar Duration property value
 which is defined in
 rfc 2445 section 4.3.6 p 37

Public Instance Methods

==(other) click to toggle source

Determine whether another object is an equivalent RiCal::PropertyValue::Duration

# File lib/ri_cal/property_value/duration.rb, line 89
      def ==(other)
        other.kind_of?(PropertyValue::Duration) && value == other.value
      end
add_to_date_time_value(date_time_value) click to toggle source

Double-dispatch method to support RiCal::PropertyValue::DateTime.+

# File lib/ri_cal/property_value/duration.rb, line 104
      def add_to_date_time_value(date_time_value)
        date_time_value.advance(:weeks => weeks, :days => days, :hours => hours, :minutes => minutes, :seconds => seconds)
      end
subtract_from_date_time_value(date_time_value) click to toggle source

Double-dispatch method to support RiCal::PropertyValue::DateTime.-

# File lib/ri_cal/property_value/duration.rb, line 99
      def subtract_from_date_time_value(date_time_value)
        date_time_value.advance(:weeks => -weeks, :days => -days, :hours => -hours, :minutes => -minutes, :seconds => -seconds)
      end
to_ri_cal_duration_value() click to toggle source

Returns the receiver

# File lib/ri_cal/property_value/duration.rb, line 94
      def to_ri_cal_duration_value
        self
      end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.