Class: RpcQueryParams

Inherits:
Object
  • Object
show all
Defined in:
lib/calimero/types/rpc.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(contextId, method, argsJson, executorPublicKey) ⇒ RpcQueryParams

Returns a new instance of RpcQueryParams.



79
80
81
82
83
84
# File 'lib/calimero/types/rpc.rb', line 79

def initialize(contextId, method, argsJson, executorPublicKey)
  @contextId = contextId
  @method = method
  @argsJson = argsJson
  @executorPublicKey = executorPublicKey
end

Instance Attribute Details

#argsJsonObject

Returns the value of attribute argsJson.



77
78
79
# File 'lib/calimero/types/rpc.rb', line 77

def argsJson
  @argsJson
end

#contextIdObject

Returns the value of attribute contextId.



77
78
79
# File 'lib/calimero/types/rpc.rb', line 77

def contextId
  @contextId
end

#executorPublicKeyObject

Returns the value of attribute executorPublicKey.



77
78
79
# File 'lib/calimero/types/rpc.rb', line 77

def executorPublicKey
  @executorPublicKey
end

#methodObject

Returns the value of attribute method.



77
78
79
# File 'lib/calimero/types/rpc.rb', line 77

def method
  @method
end

Instance Method Details

#to_hObject



86
87
88
89
90
91
92
93
# File 'lib/calimero/types/rpc.rb', line 86

def to_h
  {
    contextId: @contextId,
    method: @method,
    argsJson: @argsJson,
    executorPublicKey: @executorPublicKey
  }
end