Class: When::V::TimezoneProperty

Inherits:
Event show all
Defined in:
lib/when_exe/icalendar.rb

Overview

Timezone Property の共通抽象クラス

Direct Known Subclasses

Daylight, Standard

Constant Summary collapse

Properties =
[['dtstart', 'tzoffsetto', 'tzoffsetfrom'], [],
                 [], [], ['rrule',
'comment', 'rdate', 'tzname']]
Classes =
[]

Constants inherited from Root

Root::AwareProperties, Root::DefaultOptional, Root::DefaultUnique

Constants included from Parts::Resource

Parts::Resource::LabelProperty

Instance Attribute Summary collapse

Attributes inherited from Event

#dtend, #dtstart, #duration, #exdate, #first_occurrence, #rdate, #rrule, #summary

Attributes inherited from Root

#calscale, #property

Attributes included from Parts::Resource

#_pool, #child, #keys, #locale, #namespace

Instance Method Summary collapse

Methods inherited from Event

#_enumerator_list, _setup_, #dtstop, #each, #to_gcalevent

Methods included from Parts::Resource::Pool

#[], #[]=, #_pool, #_setup_, #pool_keys

Methods included from Parts::Resource::Synchronize

#synchronize

Methods inherited from Root

#_enumerator, #include?

Methods included from Parts::Resource

#[], #^, _decode, _encode, _extract_prefix, _instance, _parse, _path_with_prefix, _replace_tags, _setup_, #each, #enum_for, #hierarchy, #include?, #included?, #iri, #leaf?, #m17n, #map, #next, #parent, #prev, #registered?

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class When::Parts::Resource

Instance Attribute Details

#tznameArray<String(サブクラスであるWhen::BasicTypes::M17nでもよい)> (readonly)

Note:

RFC 5545 は複数個の指定を許しているため、Array としている。

TZNAME Property

Returns:



833
834
835
# File 'lib/when_exe/icalendar.rb', line 833

def tzname
  @tzname
end

#tzoffsetfromWhen::TM::Clock (readonly)

Note:

イベント時刻前の時間帯 保持する When::TM::Clock の tz_prop は、本オブジェクトを参照している。

TZOFFSETFROM Property

Returns:



843
844
845
# File 'lib/when_exe/icalendar.rb', line 843

def tzoffsetfrom
  @tzoffsetfrom
end

#tzoffsettoWhen::TM::Clock (readonly)

Note:

イベント時刻後の時間帯 保持する When::TM::Clock の tz_prop は、本オブジェクトを参照している。

TZOFFSETTO Property

Returns:



853
854
855
# File 'lib/when_exe/icalendar.rb', line 853

def tzoffsetto
  @tzoffsetto
end

Instance Method Details

#labelString

ユニーク識別名 - DTSTART Property をユニーク識別名とする

Returns:



857
858
859
# File 'lib/when_exe/icalendar.rb', line 857

def label
  @label ||= @property['dtstart'].attribute['.']
end