Class: Etherlite::Contract::FunctionInput

Inherits:
Object
  • Object
show all
Defined in:
lib/etherlite/contract/function_input.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_original_name, _type) ⇒ FunctionInput

Returns a new instance of FunctionInput.



5
6
7
8
# File 'lib/etherlite/contract/function_input.rb', line 5

def initialize(_original_name, _type)
  @original_name = _original_name
  @type = _type
end

Instance Attribute Details

#original_nameObject (readonly)

Returns the value of attribute original_name.



3
4
5
# File 'lib/etherlite/contract/function_input.rb', line 3

def original_name
  @original_name
end

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/etherlite/contract/function_input.rb', line 3

def type
  @type
end

Instance Method Details

#nameObject



14
15
16
# File 'lib/etherlite/contract/function_input.rb', line 14

def name
  @name ||= @original_name.underscore
end

#signatureObject



10
11
12
# File 'lib/etherlite/contract/function_input.rb', line 10

def signature
  @type.signature
end