class IcsParser

Public Class Methods

from_file(file) click to toggle source
# File lib/ics_parser.rb, line 4
def self.from_file(file)
  from_string(File.read(file))
end
from_string(text) click to toggle source
# File lib/ics_parser.rb, line 8
def self.from_string(text)
  return IcsParser.new(text)
end
new(calendar_content) click to toggle source
# File lib/ics_parser.rb, line 12
def initialize(calendar_content)
  @calendar_content = calendar_content
end

Public Instance Methods

events() click to toggle source
# File lib/ics_parser.rb, line 16
def events
  EventParser.new(@calendar_content).events
end