class Icalendar::TimezoneStore
Public Class Methods
instance()
click to toggle source
# File lib/icalendar/timezone_store.rb, line 13 def self.instance warn "**** DEPRECATION WARNING ****\nTimezoneStore.instance will be removed in 3.0. Please instantiate a TimezoneStore object." @instance ||= new end
new()
click to toggle source
Calls superclass method
# File lib/icalendar/timezone_store.rb, line 9 def initialize super DowncasedHash.new({}) end
retrieve(tzid)
click to toggle source
# File lib/icalendar/timezone_store.rb, line 23 def self.retrieve(tzid) warn "**** DEPRECATION WARNING ****\nTimezoneStore.retrieve will be removed in 3.0. Please use instance methods." instance.retrieve tzid end
store(timezone)
click to toggle source
# File lib/icalendar/timezone_store.rb, line 18 def self.store(timezone) warn "**** DEPRECATION WARNING ****\nTimezoneStore.store will be removed in 3.0. Please use instance methods." instance.store timezone end
Public Instance Methods
retrieve(tzid)
click to toggle source
# File lib/icalendar/timezone_store.rb, line 32 def retrieve(tzid) self[tzid] end
store(timezone)
click to toggle source
# File lib/icalendar/timezone_store.rb, line 28 def store(timezone) self[timezone.tzid] = timezone end