Class: Cruise::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/cruise/event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, kind) ⇒ Event

Returns a new instance of Event.



7
8
9
10
# File 'lib/cruise/event.rb', line 7

def initialize(path, kind)
  @path = path
  @kind = kind
end

Instance Attribute Details

#kindObject (readonly)

Returns the value of attribute kind.



5
6
7
# File 'lib/cruise/event.rb', line 5

def kind
  @kind
end

#pathObject (readonly)

Returns the value of attribute path.



5
6
7
# File 'lib/cruise/event.rb', line 5

def path
  @path
end

Instance Method Details

#inspectObject



12
13
14
# File 'lib/cruise/event.rb', line 12

def inspect
  "#<Cruise::Event kind=#{kind.inspect} path=#{path.inspect}>"
end

#to_sObject



16
17
18
# File 'lib/cruise/event.rb', line 16

def to_s
  "#{kind}: #{path}"
end