Class: Immudb::State

Inherits:
Object
  • Object
show all
Defined in:
lib/immudb/state.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dbObject (readonly)

names must match Schema::ImmutableState



16
17
18
# File 'lib/immudb/state.rb', line 16

def db
  @db
end

#publicKeyObject (readonly)

names must match Schema::ImmutableState



16
17
18
# File 'lib/immudb/state.rb', line 16

def publicKey
  @publicKey
end

#signatureObject (readonly)

names must match Schema::ImmutableState



16
17
18
# File 'lib/immudb/state.rb', line 16

def signature
  @signature
end

#txHashObject (readonly)

names must match Schema::ImmutableState



16
17
18
# File 'lib/immudb/state.rb', line 16

def txHash
  @txHash
end

#txIdObject (readonly)

names must match Schema::ImmutableState



16
17
18
# File 'lib/immudb/state.rb', line 16

def txId
  @txId
end