Class: Kickboxer::Response::Collector
- Inherits:
-
Object
- Object
- Kickboxer::Response::Collector
- Defined in:
- lib/kickboxer/response.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(key, value) ⇒ Object
42 43 44 45 46 |
# File 'lib/kickboxer/response.rb', line 42 def method_missing(key, value) @data ||= {} @data[key] = value self end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
40 41 42 |
# File 'lib/kickboxer/response.rb', line 40 def data @data end |