Class: Etherlite::Contract::EventInput
- Inherits:
-
Object
- Object
- Etherlite::Contract::EventInput
- Defined in:
- lib/etherlite/contract/event_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
- #indexed? ⇒ Boolean
-
#initialize(_original_name, _type, _indexed) ⇒ EventInput
constructor
A new instance of EventInput.
- #name ⇒ Object
Constructor Details
#initialize(_original_name, _type, _indexed) ⇒ EventInput
Returns a new instance of EventInput.
5 6 7 8 9 |
# File 'lib/etherlite/contract/event_input.rb', line 5 def initialize(_original_name, _type, _indexed) @original_name = _original_name @type = _type @indexed = _indexed end |
Instance Attribute Details
#original_name ⇒ Object (readonly)
Returns the value of attribute original_name.
3 4 5 |
# File 'lib/etherlite/contract/event_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/event_input.rb', line 3 def type @type end |
Instance Method Details
#indexed? ⇒ Boolean
15 16 17 |
# File 'lib/etherlite/contract/event_input.rb', line 15 def indexed? @indexed end |
#name ⇒ Object
11 12 13 |
# File 'lib/etherlite/contract/event_input.rb', line 11 def name @name ||= @original_name.underscore end |