Class: Etheruby::ResponseHolder
- Inherits:
-
Object
- Object
- Etheruby::ResponseHolder
- Defined in:
- lib/etheruby/response_parser.rb
Instance Method Summary collapse
-
#initialize(_values = {}) ⇒ ResponseHolder
constructor
A new instance of ResponseHolder.
- #method_missing(sym, *args) ⇒ Object
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 |