Class: Watchcat::Event
- Inherits:
-
Object
- Object
- Watchcat::Event
- Defined in:
- lib/watchcat/event.rb
Instance Attribute Summary collapse
-
#event ⇒ Object
readonly
Returns the value of attribute event.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#paths ⇒ Object
readonly
Returns the value of attribute paths.
-
#raw_kind ⇒ Object
readonly
Returns the value of attribute raw_kind.
Instance Method Summary collapse
- #deconstruct_keys(_keys) ⇒ Object
-
#initialize(kinds, paths, raw_kind) ⇒ Event
constructor
A new instance of Event.
Constructor Details
#initialize(kinds, paths, raw_kind) ⇒ Event
Returns a new instance of Event.
7 8 9 10 11 |
# File 'lib/watchcat/event.rb', line 7 def initialize(kinds, paths, raw_kind) @paths = paths @raw_kind = raw_kind build_kind(kinds) end |
Instance Attribute Details
#event ⇒ Object (readonly)
Returns the value of attribute event.
5 6 7 |
# File 'lib/watchcat/event.rb', line 5 def event @event end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind.
5 6 7 |
# File 'lib/watchcat/event.rb', line 5 def kind @kind end |
#paths ⇒ Object (readonly)
Returns the value of attribute paths.
5 6 7 |
# File 'lib/watchcat/event.rb', line 5 def paths @paths end |
#raw_kind ⇒ Object (readonly)
Returns the value of attribute raw_kind.
5 6 7 |
# File 'lib/watchcat/event.rb', line 5 def raw_kind @raw_kind end |
Instance Method Details
#deconstruct_keys(_keys) ⇒ Object
13 14 15 |
# File 'lib/watchcat/event.rb', line 13 def deconstruct_keys(_keys) { paths: @paths, event: @event } end |