Class: Watchcat::EventKind

Inherits:
Object
  • Object
show all
Defined in:
lib/watchcat/kind.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEventKind

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

#accessObject

Returns the value of attribute access.



5
6
7
# File 'lib/watchcat/kind.rb', line 5

def access
  @access
end

#anyObject

Returns the value of attribute any.



5
6
7
# File 'lib/watchcat/kind.rb', line 5

def any
  @any
end

#createObject

Returns the value of attribute create.



5
6
7
# File 'lib/watchcat/kind.rb', line 5

def create
  @create
end

#modifyObject

Returns the value of attribute modify.



5
6
7
# File 'lib/watchcat/kind.rb', line 5

def modify
  @modify
end

#removeObject

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

Returns:

  • (Boolean)


11
12
13
# File 'lib/watchcat/kind.rb', line 11

def access?
  !@access.nil?
end

#any?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/watchcat/kind.rb', line 27

def any?
  !@any.nil?
end

#create?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/watchcat/kind.rb', line 15

def create?
  !@create.nil?
end

#modify?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/watchcat/kind.rb', line 19

def modify?
  !@modify.nil?
end

#remove?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/watchcat/kind.rb', line 23

def remove?
  !@remove.nil?
end