Class: SorobanRustBackend::ContractState::Handler

Inherits:
Object
  • Object
show all
Defined in:
lib/contract_state/handler.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(state) ⇒ Handler

Returns a new instance of Handler.



4
5
6
# File 'lib/contract_state/handler.rb', line 4

def initialize(state)
  @state = state
end

Class Method Details

.generate(state) ⇒ Object



8
9
10
# File 'lib/contract_state/handler.rb', line 8

def self.generate(state)
  new(state).generate
end

Instance Method Details

#generateObject



12
13
14
# File 'lib/contract_state/handler.rb', line 12

def generate
  generate_state
end