Class: Trx::Abi::FunctionOutput

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ FunctionOutput

Returns a new instance of FunctionOutput.



8
9
10
11
# File 'lib/trx/abi/function_output.rb', line 8

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

Instance Attribute Details

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/trx/abi/function_output.rb', line 6

def name
  @name
end

#typeObject

Returns the value of attribute type.



6
7
8
# File 'lib/trx/abi/function_output.rb', line 6

def type
  @type
end