Class: Watchcat::DataChange
- Inherits:
-
Object
- Object
- Watchcat::DataChange
- Defined in:
- lib/watchcat/kind.rb
Instance Attribute Summary collapse
-
#kind ⇒ Object
Returns the value of attribute kind.
Instance Method Summary collapse
- #content? ⇒ Boolean
-
#initialize(kind) ⇒ DataChange
constructor
A new instance of DataChange.
- #size? ⇒ Boolean
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
#kind ⇒ Object
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
148 149 150 |
# File 'lib/watchcat/kind.rb', line 148 def content? @kind == "content" end |
#size? ⇒ Boolean
144 145 146 |
# File 'lib/watchcat/kind.rb', line 144 def size? @kind == "size" end |