Class: NearApi::Actions::FunctionCall
- Inherits:
-
Object
- Object
- NearApi::Actions::FunctionCall
- Includes:
- Borsh
- Defined in:
- lib/near_api/actions/function_call.rb
Instance Method Summary collapse
-
#initialize(method_name, args, gas: 100_000_000_000_000, amount: 0) ⇒ FunctionCall
constructor
A new instance of FunctionCall.
Constructor Details
#initialize(method_name, args, gas: 100_000_000_000_000, amount: 0) ⇒ FunctionCall
Returns a new instance of FunctionCall.
14 15 16 17 18 19 |
# File 'lib/near_api/actions/function_call.rb', line 14 def initialize(method_name, args, gas: 100_000_000_000_000, amount: 0) @method_name = method_name @args = args.is_a?(::String) ? args : args.to_json @gas = gas @amount = amount end |