Class: Statefully::Diff::Changed
- Inherits:
-
Object
- Object
- Statefully::Diff::Changed
- Defined in:
- lib/statefully/diff.rb
Instance Attribute Summary collapse
-
#added ⇒ Object
readonly
Returns the value of attribute added.
-
#changed ⇒ Object
readonly
Returns the value of attribute changed.
Instance Method Summary collapse
Instance Attribute Details
#added ⇒ Object (readonly)
Returns the value of attribute added.
15 16 17 |
# File 'lib/statefully/diff.rb', line 15 def added @added end |
#changed ⇒ Object (readonly)
Returns the value of attribute changed.
15 16 17 |
# File 'lib/statefully/diff.rb', line 15 def changed @changed end |
Instance Method Details
#added?(key) ⇒ Boolean
25 26 27 |
# File 'lib/statefully/diff.rb', line 25 def added?(key) added.key?(key) end |
#changed?(key) ⇒ Boolean
29 30 31 |
# File 'lib/statefully/diff.rb', line 29 def changed?(key) changed.key?(key) end |
#empty? ⇒ Boolean
17 18 19 |
# File 'lib/statefully/diff.rb', line 17 def empty? false end |
#inspect ⇒ Object
21 22 23 |
# File 'lib/statefully/diff.rb', line 21 def inspect "#<#{self.class.name} #{inspect_details}>" end |