Class: Kickboxer::Response::Collector

Inherits:
Object
  • Object
show all
Defined in:
lib/kickboxer/response.rb

Instance Attribute Summary collapse

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

#dataObject (readonly)

Returns the value of attribute data.



40
41
42
# File 'lib/kickboxer/response.rb', line 40

def data
  @data
end