Class: Cruise::Event
- Inherits:
-
Object
- Object
- Cruise::Event
- Defined in:
- lib/cruise/event.rb
Instance Attribute Summary collapse
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path, kind) ⇒ Event
constructor
A new instance of Event.
- #inspect ⇒ Object
- #to_s ⇒ Object
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
#kind ⇒ Object (readonly)
Returns the value of attribute kind.
5 6 7 |
# File 'lib/cruise/event.rb', line 5 def kind @kind end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
5 6 7 |
# File 'lib/cruise/event.rb', line 5 def path @path end |
Instance Method Details
#inspect ⇒ Object
12 13 14 |
# File 'lib/cruise/event.rb', line 12 def inspect "#<Cruise::Event kind=#{kind.inspect} path=#{path.inspect}>" end |
#to_s ⇒ Object
16 17 18 |
# File 'lib/cruise/event.rb', line 16 def to_s "#{kind}: #{path}" end |