Sha256: 7af33cfde655de36d7d1b00b34a080f17ecb78b0a671a072d9265be83951baaf

Contents?: true

Size: 1.04 KB

Versions: 37

Compression:

Stored size: 1.04 KB

Contents

require File.join(File.dirname(__FILE__), %w[.. properties journal.rb])

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

37 entries across 37 versions & 3 rubygems

Version Path
ebeigarts-ri_cal-0.8.1 lib/ri_cal/component/journal.rb
rubyredrick-ri_cal-0.5.0 lib/ri_cal/component/journal.rb
rubyredrick-ri_cal-0.5.1 lib/ri_cal/component/journal.rb
rubyredrick-ri_cal-0.5.2 lib/ri_cal/component/journal.rb
rubyredrick-ri_cal-0.5.3 lib/ri_cal/component/journal.rb
rubyredrick-ri_cal-0.6.0 lib/ri_cal/component/journal.rb
rubyredrick-ri_cal-0.6.1 lib/ri_cal/component/journal.rb
rubyredrick-ri_cal-0.6.2 lib/ri_cal/component/journal.rb
rubyredrick-ri_cal-0.6.3 lib/ri_cal/component/journal.rb
rubyredrick-ri_cal-0.7.0 lib/ri_cal/component/journal.rb
rubyredrick-ri_cal-0.7.1 lib/ri_cal/component/journal.rb
rubyredrick-ri_cal-0.7.2 lib/ri_cal/component/journal.rb
rubyredrick-ri_cal-0.7.4 lib/ri_cal/component/journal.rb
rubyredrick-ri_cal-0.7.5 lib/ri_cal/component/journal.rb
rubyredrick-ri_cal-0.7.7 lib/ri_cal/component/journal.rb
rubyredrick-ri_cal-0.8.0 lib/ri_cal/component/journal.rb
rubyredrick-ri_cal-0.8.1 lib/ri_cal/component/journal.rb
rubyredrick-ri_cal-0.8.2 lib/ri_cal/component/journal.rb
ri_cal-0.8.2 lib/ri_cal/component/journal.rb
ri_cal-0.8.1 lib/ri_cal/component/journal.rb