Class: Watchcat::EventKind
- Inherits:
-
Object
- Object
- Watchcat::EventKind
- Defined in:
- lib/watchcat/kind.rb
Instance Attribute Summary collapse
-
#access ⇒ Object
Returns the value of attribute access.
-
#any ⇒ Object
Returns the value of attribute any.
-
#create ⇒ Object
Returns the value of attribute create.
-
#modify ⇒ Object
Returns the value of attribute modify.
-
#remove ⇒ Object
Returns the value of attribute remove.
Instance Method Summary collapse
- #access? ⇒ Boolean
- #any? ⇒ Boolean
- #create? ⇒ Boolean
-
#initialize ⇒ EventKind
constructor
A new instance of EventKind.
- #modify? ⇒ Boolean
- #remove? ⇒ Boolean
Constructor Details
#initialize ⇒ EventKind
Returns a new instance of EventKind.
7 8 9 |
# File 'lib/watchcat/kind.rb', line 7 def initialize @access, @create, @modify, @remove, @any = nil, nil, nil, nil,nil end |
Instance Attribute Details
#access ⇒ Object
Returns the value of attribute access.
5 6 7 |
# File 'lib/watchcat/kind.rb', line 5 def access @access end |
#any ⇒ Object
Returns the value of attribute any.
5 6 7 |
# File 'lib/watchcat/kind.rb', line 5 def any @any end |
#create ⇒ Object
Returns the value of attribute create.
5 6 7 |
# File 'lib/watchcat/kind.rb', line 5 def create @create end |
#modify ⇒ Object
Returns the value of attribute modify.
5 6 7 |
# File 'lib/watchcat/kind.rb', line 5 def modify @modify end |
#remove ⇒ Object
Returns the value of attribute remove.
5 6 7 |
# File 'lib/watchcat/kind.rb', line 5 def remove @remove end |
Instance Method Details
#access? ⇒ Boolean
11 12 13 |
# File 'lib/watchcat/kind.rb', line 11 def access? !@access.nil? end |
#any? ⇒ Boolean
27 28 29 |
# File 'lib/watchcat/kind.rb', line 27 def any? !@any.nil? end |
#create? ⇒ Boolean
15 16 17 |
# File 'lib/watchcat/kind.rb', line 15 def create? !@create.nil? end |
#modify? ⇒ Boolean
19 20 21 |
# File 'lib/watchcat/kind.rb', line 19 def modify? !@modify.nil? end |
#remove? ⇒ Boolean
23 24 25 |
# File 'lib/watchcat/kind.rb', line 23 def remove? !@remove.nil? end |