Class: Etherlite::Contract::FunctionInput
- Inherits:
-
Object
- Object
- Etherlite::Contract::FunctionInput
- Defined in:
- lib/etherlite/contract/function_input.rb
Instance Attribute Summary collapse
-
#original_name ⇒ Object
readonly
Returns the value of attribute original_name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(_original_name, _type) ⇒ FunctionInput
constructor
A new instance of FunctionInput.
- #name ⇒ Object
- #signature ⇒ Object
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_name ⇒ Object (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 |
#type ⇒ Object (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
#name ⇒ Object
14 15 16 |
# File 'lib/etherlite/contract/function_input.rb', line 14 def name @name ||= @original_name.underscore end |
#signature ⇒ Object
10 11 12 |
# File 'lib/etherlite/contract/function_input.rb', line 10 def signature @type.signature end |