Class: Mockolate::Request
- Inherits:
-
Object
- Object
- Mockolate::Request
- Defined in:
- lib/mockolate/request.rb
Defined Under Namespace
Constant Summary collapse
- @@public_attributes =
[]
- @@payloads =
[]
- @@payload_options =
{}
Class Method Summary collapse
- .params ⇒ Object
- .payload(options = {}, &block) ⇒ Object
- .payload_parser(options = {}, &block) ⇒ Object
Instance Method Summary collapse
Class Method Details
.params ⇒ Object
19 20 21 |
# File 'lib/mockolate/request.rb', line 19 def self.params @@public_attributes end |
.payload(options = {}, &block) ⇒ Object
8 9 10 |
# File 'lib/mockolate/request.rb', line 8 def self.payload( = {}, &block) @@payloads << payload_parser(, &block) end |