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 Event

Event::DayOfWeek, Event::RegisteredNoteMethods, Event::RegisteredNotes

Constants inherited from Root

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

Constants included from Namespace

Namespace::DC, Namespace::DCQ, Namespace::DCT, Namespace::FOAF, Namespace::OWL, Namespace::RDF, Namespace::RDFC, Namespace::RDFS, Namespace::RSS, Namespace::XSD

Instance Attribute Summary collapse

Attributes inherited from Event

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

Attributes inherited from Root

#calscale, #property

Attributes included from Parts::Resource

#child, #keys, #locale, #namespace

Instance Method Summary collapse

Methods inherited from Event

_setup_, _setup_info, default_until, #dtstop, #each, gcal2ical, iterator_for_ISO8601, #to_gcalevent

Methods included from Parts::Resource::Pool

#[], #[]=, #_setup_

Methods inherited from Root

#include?

Methods included from Parts::Resource

#[], #^, _instance, _setup_, _setup_info, base_uri, #each, #enum_for, #hierarchy, #include?, #included?, #iri, #leaf?, #m17n, #map, #parent, #registered?, root_dir

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:



948
949
950
# File 'lib/when_exe/icalendar.rb', line 948

def tzname
  @tzname
end

#tzoffsetfromWhen::TM::Clock (readonly)

Note:

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

TZOFFSETFROM Property

Returns:



958
959
960
# File 'lib/when_exe/icalendar.rb', line 958

def tzoffsetfrom
  @tzoffsetfrom
end

#tzoffsettoWhen::TM::Clock (readonly)

Note:

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

TZOFFSETTO Property

Returns:



968
969
970
# File 'lib/when_exe/icalendar.rb', line 968

def tzoffsetto
  @tzoffsetto
end

Instance Method Details

#labelString

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

Returns:



972
973
974
# File 'lib/when_exe/icalendar.rb', line 972

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