Class: EthereumContractABI::ContractInterface::Input

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, type) ⇒ Input

Returns a new instance of Input.



6
7
8
9
# File 'lib/ethereum-contract-abi/contract/input.rb', line 6

def initialize(name, type)
  @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/input.rb', line 4

def type
  @type
end

Instance Method Details

#encode_value(value) ⇒ Object



11
12
13
# File 'lib/ethereum-contract-abi/contract/input.rb', line 11

def encode_value(value)
  @type.encode_value(value)
end