Class: Etheruby::ResponseHolder

Inherits:
Object
  • Object
show all
Defined in:
lib/etheruby/response_parser.rb

Instance Method Summary collapse

Constructor Details

#initialize(_values = {}) ⇒ ResponseHolder

Returns a new instance of ResponseHolder.



8
9
10
# File 'lib/etheruby/response_parser.rb', line 8

def initialize(_values={})
  @values=_values
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(sym, *args) ⇒ Object



11
12
13
# File 'lib/etheruby/response_parser.rb', line 11

def method_missing(sym, *args)
  @values[sym]
end