Class: Mockolate::Response
- Inherits:
-
Object
- Object
- Mockolate::Response
- Defined in:
- lib/mockolate/response.rb
Constant Summary collapse
- @@object_class =
nil
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.define_endpoint!(mtd, &block) ⇒ Object
6 7 8 |
# File 'lib/mockolate/response.rb', line 6 def self.define_endpoint!(mtd, &block) method(:define_method).call(mtd, &block) end |
Instance Method Details
#object ⇒ Object
10 11 12 |
# File 'lib/mockolate/response.rb', line 10 def object @@object_class.generate_hash! end |