Class: Eth::Contract::FunctionOutput
- Inherits:
-
Object
- Object
- Eth::Contract::FunctionOutput
- Defined in:
- lib/eth/contract/function_output.rb
Overview
Provide classes for contract function output.
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns complete types with subtypes, e.g.,
uint256
.
Instance Method Summary collapse
-
#initialize(data) ⇒ FunctionOutput
constructor
Constructor of the FunctionOutput class.
Constructor Details
#initialize(data) ⇒ FunctionOutput
Constructor of the Eth::Contract::FunctionOutput class.
27 28 29 30 |
# File 'lib/eth/contract/function_output.rb', line 27 def initialize(data) @type = Eth::Abi::Type.parse(data["type"]) @name = data["name"] end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
22 23 24 |
# File 'lib/eth/contract/function_output.rb', line 22 def name @name end |
#type ⇒ Object
Returns complete types with subtypes, e.g., uint256
.
33 34 35 |
# File 'lib/eth/contract/function_output.rb', line 33 def type @type end |