Method: ICalPal#initialize
- Defined in:
- lib/icalPal.rb
#initialize(obj) ⇒ Object
73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/icalPal.rb', line 73 def initialize(obj) obj['type'] = EventKit::EKSourceType.find_index { |i| i[:name] == 'Subscribed' } if obj['subcal_url'] type = EventKit::EKSourceType[obj['type']] obj['store'] = obj['account'] obj['type'] = type[:name] obj['color'] ||= type[:color] obj['symbolic_color_name'] ||= type[:color] @self = obj end |