class TezosClient::Operation

Attributes

rpc_interface[R]

Public Class Methods

new(rpc_interface:, **args) click to toggle source
# File lib/tezos_client/operations/operation.rb, line 7
def initialize(rpc_interface:, **args)
  @rpc_interface = rpc_interface
  @args = args.clone
  post_initialize(**args)
end

Protected Instance Methods

operation_mgr() click to toggle source
# File lib/tezos_client/operations/operation.rb, line 23
def operation_mgr
  @operation_mgr ||= OperationMgr.new(
    rpc_interface: rpc_interface,
    rpc_operation_args: rpc_operation_args,
    **operation_options)
end
operation_options() click to toggle source
# File lib/tezos_client/operations/operation.rb, line 30
def operation_options
  @args.slice(:secret_key, :protocol, :branch, :ignore_counter_error)
end
post_initialize(*_args) click to toggle source
# File lib/tezos_client/operations/operation.rb, line 20
def post_initialize(*_args)
end
rpc_operation_args() click to toggle source
# File lib/tezos_client/operations/operation.rb, line 16
def rpc_operation_args
  raise NotImplementedError, "#{__method__} is a virtual method"
end