Class: Watchcat::MetadataKind

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(kind) ⇒ MetadataKind

Returns a new instance of MetadataKind.



156
157
158
# File 'lib/watchcat/kind.rb', line 156

def initialize(kind)
  @kind = kind
end

Instance Attribute Details

#kindObject

Returns the value of attribute kind.



154
155
156
# File 'lib/watchcat/kind.rb', line 154

def kind
  @kind
end

Instance Method Details

#access_time?Boolean

Returns:

  • (Boolean)


160
161
162
# File 'lib/watchcat/kind.rb', line 160

def access_time?
  @kind == "access_time"
end

#extended?Boolean

Returns:

  • (Boolean)


176
177
178
# File 'lib/watchcat/kind.rb', line 176

def extended?
  @kind == "extended"
end

#ownership?Boolean

Returns:

  • (Boolean)


172
173
174
# File 'lib/watchcat/kind.rb', line 172

def ownership?
  @kind == "ownership"
end

#permission?Boolean

Returns:

  • (Boolean)


168
169
170
# File 'lib/watchcat/kind.rb', line 168

def permission?
  @kind == "permission"
end

#write_time?Boolean

Returns:

  • (Boolean)


164
165
166
# File 'lib/watchcat/kind.rb', line 164

def write_time?
  @kind == "write_time"
end