Class: Statefully::Diff::Created

Inherits:
Changed show all
Defined in:
lib/statefully/diff.rb

Overview

Created represents a difference between a null and non-null State.

Instance Attribute Summary

Attributes inherited from Changed

#added, #changed

Instance Method Summary collapse

Methods inherited from Changed

#empty?, #initialize, #inspect

Methods inherited from Statefully::Diff

#added, #added?, #changed, #changed?, create, #empty?

Constructor Details

This class inherits a constructor from Statefully::Diff::Changed

Instance Method Details

#created?Boolean

Check if a Statefully::Diff resulted from creating a State

Examples:

Stateful::State.created.created?
=> true

Stateful::State.created.succeed.created?
=> false

Returns:

  • (Boolean)


222
223
224
# File 'lib/statefully/diff.rb', line 222

def created?
  true
end