Class: EthereumContractABI::ContractInterface::Parsers::FunctionParser
- Inherits:
-
Object
- Object
- EthereumContractABI::ContractInterface::Parsers::FunctionParser
- Defined in:
- lib/ethereum-contract-abi/contract/parsers/function_parser.rb
Class Method Summary collapse
Class Method Details
.from_hash(function_hash) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/ethereum-contract-abi/contract/parsers/function_parser.rb', line 14 def self.from_hash(function_hash) function_hash = function_hash.transform_keys(&:to_sym) name = function_hash[:name] inputs = self.get_inputs(function_hash[:inputs]) outputs = self.get_inputs(function_hash[:outputs]) Function.new(name, inputs, outputs) end |