Class: EthereumContractABI::ContractInterface::Output
- Inherits:
-
Object
- Object
- EthereumContractABI::ContractInterface::Output
- Defined in:
- lib/ethereum-contract-abi/contract/output.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #decode_value(value) ⇒ Object
-
#initialize(type, name = nil) ⇒ Output
constructor
A new instance of Output.
Constructor Details
#initialize(type, name = nil) ⇒ Output
Returns a new instance of Output.
6 7 8 9 |
# File 'lib/ethereum-contract-abi/contract/output.rb', line 6 def initialize(type, name = nil) @name = name @type = type end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
4 5 6 |
# File 'lib/ethereum-contract-abi/contract/output.rb', line 4 def type @type end |
Instance Method Details
#decode_value(value) ⇒ Object
11 12 13 |
# File 'lib/ethereum-contract-abi/contract/output.rb', line 11 def decode_value(value) @type.decode_value(value) end |