Class: EthereumContractABI::ContractInterface::Output

Inherits:
Object
  • Object
show all
Defined in:
lib/ethereum-contract-abi/contract/output.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#typeObject (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