Class: Watchcat::DataChange

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(kind) ⇒ DataChange

Returns a new instance of DataChange.



140
141
142
# File 'lib/watchcat/kind.rb', line 140

def initialize(kind)
  @kind = kind
end

Instance Attribute Details

#kindObject

Returns the value of attribute kind.



138
139
140
# File 'lib/watchcat/kind.rb', line 138

def kind
  @kind
end

Instance Method Details

#content?Boolean

Returns:

  • (Boolean)


148
149
150
# File 'lib/watchcat/kind.rb', line 148

def content?
  @kind == "content"
end

#size?Boolean

Returns:

  • (Boolean)


144
145
146
# File 'lib/watchcat/kind.rb', line 144

def size?
  @kind == "size"
end