Class: Immudb::State
- Inherits:
-
Object
- Object
- Immudb::State
- Defined in:
- lib/immudb/state.rb
Instance Attribute Summary collapse
-
#db ⇒ Object
readonly
names must match Schema::ImmutableState.
-
#publicKey ⇒ Object
readonly
names must match Schema::ImmutableState.
-
#signature ⇒ Object
readonly
names must match Schema::ImmutableState.
-
#txHash ⇒ Object
readonly
names must match Schema::ImmutableState.
-
#txId ⇒ Object
readonly
names must match Schema::ImmutableState.
Instance Method Summary collapse
-
#initialize(db:, txId:, txHash:, publicKey:, signature:) ⇒ State
constructor
A new instance of State.
Constructor Details
#initialize(db:, txId:, txHash:, publicKey:, signature:) ⇒ State
Returns a new instance of State.
18 19 20 21 22 23 24 |
# File 'lib/immudb/state.rb', line 18 def initialize(db:, txId:, txHash:, publicKey:, signature:) @db = db @txId = txId @txHash = txHash @publicKey = publicKey @signature = signature end |
Instance Attribute Details
#db ⇒ Object (readonly)
names must match Schema::ImmutableState
16 17 18 |
# File 'lib/immudb/state.rb', line 16 def db @db end |
#publicKey ⇒ Object (readonly)
names must match Schema::ImmutableState
16 17 18 |
# File 'lib/immudb/state.rb', line 16 def publicKey @publicKey end |
#signature ⇒ Object (readonly)
names must match Schema::ImmutableState
16 17 18 |
# File 'lib/immudb/state.rb', line 16 def signature @signature end |
#txHash ⇒ Object (readonly)
names must match Schema::ImmutableState
16 17 18 |
# File 'lib/immudb/state.rb', line 16 def txHash @txHash end |
#txId ⇒ Object (readonly)
names must match Schema::ImmutableState
16 17 18 |
# File 'lib/immudb/state.rb', line 16 def txId @txId end |