Class: Ethereum::FunctionOutput
- Inherits:
-
Object
- Object
- Ethereum::FunctionOutput
- Defined in:
- lib/ethereum/function_output.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(data) ⇒ FunctionOutput
constructor
A new instance of FunctionOutput.
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
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/ethereum/function_output.rb', line 5 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
5 6 7 |
# File 'lib/ethereum/function_output.rb', line 5 def type @type end |