Sha256: 6b71dbb15513aab3cc1173cd9b91b33a2d0688bd4967c98f35f4c21100d99f15

Contents?: true

Size: 986 Bytes

Versions: 14

Compression:

Stored size: 986 Bytes

Contents

module RiCal
  class Component
    #- ©2009 Rick DeNatale, All rights reserved. Refer to the file README.txt for the license
    #
    #  A Journal (VJOURNAL) calendar component groups properties describing a journal entry.
    #  Journals may have multiple occurrences
    # to see the property accessing methods for this class see the RiCal::Properties::Journal module
    # to see the methods for enumerating occurrences of recurring journals see the RiCal::OccurrenceEnumerator module
    class Journal < Component
      include RiCal::Properties::Journal
      include RiCal::OccurrenceEnumerator

      def self.entity_name #:nodoc:
        "VJOURNAL"
      end
      
      # Return a date_time representing the time at which the event starts
      def start_time
        dtstart.to_datetime
      end
      
      # Journals take up no calendar time, so the finish time is always the same as the start_time
      alias_method :finish_time, :start_time
      
    end
  end
end

Version data entries

14 entries across 14 versions & 7 rubygems

Version Path
demingfactor-ri_cal-0.10.0 lib/ri_cal/component/journal.rb
demingfactor-ri_cal-0.9.0 lib/ri_cal/component/journal.rb
rubyredrick-ri_cal-0.8.4 lib/ri_cal/component/journal.rb
awallis-ri_cal-0.8.8 lib/ri_cal/component/journal.rb
justinsoong-ri_cal-0.8.9 lib/ri_cal/component/journal.rb
justinsoong-ri_cal-0.8.8 lib/ri_cal/component/journal.rb
micahwedemeyer-ri_cal-0.8.10 lib/ri_cal/component/journal.rb
micahwedemeyer-ri_cal-0.8.9 lib/ri_cal/component/journal.rb
ri_cal-0.8.8 lib/ri_cal/component/journal.rb
ri_cal-0.8.7 lib/ri_cal/component/journal.rb
ri_cal-0.8.6 lib/ri_cal/component/journal.rb
miguelbaldi-ri_cal-0.1 lib/ri_cal/component/journal.rb
ri_cal-0.8.5 lib/ri_cal/component/journal.rb
ri_cal-0.8.4 lib/ri_cal/component/journal.rb