Class: Plushie::State::Container
- Inherits:
-
Data
- Object
- Data
- Plushie::State::Container
- Includes:
- Model::Extensions
- Defined in:
- lib/plushie/state.rb,
sig/plushie/state.rbs
Overview
Immutable state container.
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#revision ⇒ Object
readonly
Returns the value of attribute revision.
-
#transaction ⇒ Object
readonly
Returns the value of attribute transaction.
Instance Method Summary collapse
-
#initialize ⇒ Container
constructor
A new instance of Container.
- #with ⇒ Container
Constructor Details
#initialize ⇒ Container
Returns a new instance of Container.
8 |
# File 'sig/plushie/state.rbs', line 8
def initialize: (data: Hash[Symbol, untyped], revision: Integer, transaction: Hash[Symbol, untyped]?) -> void
|
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data
25 26 27 |
# File 'lib/plushie/state.rb', line 25 def data @data end |
#revision ⇒ Object (readonly)
Returns the value of attribute revision
25 26 27 |
# File 'lib/plushie/state.rb', line 25 def revision @revision end |
#transaction ⇒ Object (readonly)
Returns the value of attribute transaction
25 26 27 |
# File 'lib/plushie/state.rb', line 25 def transaction @transaction end |
Instance Method Details
#with ⇒ Container
10 |
# File 'sig/plushie/state.rbs', line 10
def with: (**untyped changes) -> Container
|