Class: Trx::Abi::FunctionInput

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ FunctionInput

Returns a new instance of FunctionInput.



8
9
10
11
# File 'lib/trx/abi/function_input.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_input.rb', line 6

def name
  @name
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end