class Runt::Event

TODO: Extend event to take other attributes

Attributes

id[R]

Public Class Methods

new(id) click to toggle source
# File lib/runt/schedule.rb, line 93
def initialize(id)
  raise Exception, "id argument cannot be nil" unless !id.nil?
  @id=id
end

Public Instance Methods

==(other) click to toggle source
# File lib/runt/schedule.rb, line 100
def == (other)
  return true if other.kind_of?(Event) && @id==other.id
end
to_s() click to toggle source
# File lib/runt/schedule.rb, line 98
def to_s; @id.to_s end