Class: RpcQueryParams
- Inherits:
-
Object
- Object
- RpcQueryParams
- Defined in:
- lib/calimero/types/rpc.rb
Instance Attribute Summary collapse
-
#argsJson ⇒ Object
Returns the value of attribute argsJson.
-
#contextId ⇒ Object
Returns the value of attribute contextId.
-
#executorPublicKey ⇒ Object
Returns the value of attribute executorPublicKey.
-
#method ⇒ Object
Returns the value of attribute method.
Instance Method Summary collapse
-
#initialize(contextId, method, argsJson, executorPublicKey) ⇒ RpcQueryParams
constructor
A new instance of RpcQueryParams.
- #to_h ⇒ Object
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
#argsJson ⇒ Object
Returns the value of attribute argsJson.
77 78 79 |
# File 'lib/calimero/types/rpc.rb', line 77 def argsJson @argsJson end |
#contextId ⇒ Object
Returns the value of attribute contextId.
77 78 79 |
# File 'lib/calimero/types/rpc.rb', line 77 def contextId @contextId end |
#executorPublicKey ⇒ Object
Returns the value of attribute executorPublicKey.
77 78 79 |
# File 'lib/calimero/types/rpc.rb', line 77 def executorPublicKey @executorPublicKey end |
#method ⇒ Object
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_h ⇒ Object
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 |