class Icalendar::TimezoneStore

Public Class Methods

instance() click to toggle source
# File lib/icalendar/timezone_store.rb, line 11
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 7
def initialize
  super DowncasedHash.new({})
end
retrieve(tzid) click to toggle source
# File lib/icalendar/timezone_store.rb, line 21
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 16
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 30
def retrieve(tzid)
  self[tzid]
end
store(timezone) click to toggle source
# File lib/icalendar/timezone_store.rb, line 26
def store(timezone)
  self[timezone.tzid] = timezone
end