Class: Ethereum::FunctionOutput

Inherits:
Object
  • Object
show all
Defined in:
lib/ethereum/function_output.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ FunctionOutput

Returns a new instance of FunctionOutput.


7
8
9
10
# File 'lib/ethereum/function_output.rb', line 7

def initialize(data)
  @type = data["type"]
  @name = data["name"]
end

Instance Attribute Details

#nameObject

Returns the value of attribute name


5
6
7
# File 'lib/ethereum/function_output.rb', line 5

def name
  @name
end

#typeObject

Returns the value of attribute type


5
6
7
# File 'lib/ethereum/function_output.rb', line 5

def type
  @type
end