Class: Etherlite::Contract::EventInput

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (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

#typeObject (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

Returns:

  • (Boolean)


15
16
17
# File 'lib/etherlite/contract/event_input.rb', line 15

def indexed?
  @indexed
end

#nameObject



11
12
13
# File 'lib/etherlite/contract/event_input.rb', line 11

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