Class: Wrappi::UncalledRequest
- Inherits:
-
Object
- Object
- Wrappi::UncalledRequest
- Defined in:
- lib/wrappi/uncalled_request.rb
Instance Method Summary collapse
- #body ⇒ Object
- #called? ⇒ Boolean
- #error? ⇒ Boolean
- #raw_body ⇒ Object
- #request ⇒ Object (also: #call)
- #status ⇒ Object
- #success? ⇒ Boolean
- #uri ⇒ Object
Instance Method Details
#body ⇒ Object
12 13 14 |
# File 'lib/wrappi/uncalled_request.rb', line 12 def body { "message" => "uncalled response" } end |
#called? ⇒ Boolean
8 9 10 |
# File 'lib/wrappi/uncalled_request.rb', line 8 def called? true end |
#error? ⇒ Boolean
20 21 22 |
# File 'lib/wrappi/uncalled_request.rb', line 20 def error? true end |
#raw_body ⇒ Object
24 25 26 |
# File 'lib/wrappi/uncalled_request.rb', line 24 def raw_body body.to_json end |
#request ⇒ Object Also known as: call
3 4 5 |
# File 'lib/wrappi/uncalled_request.rb', line 3 def request nil end |
#status ⇒ Object
32 33 34 |
# File 'lib/wrappi/uncalled_request.rb', line 32 def status 100 end |
#success? ⇒ Boolean
16 17 18 |
# File 'lib/wrappi/uncalled_request.rb', line 16 def success? false end |
#uri ⇒ Object
28 29 30 |
# File 'lib/wrappi/uncalled_request.rb', line 28 def uri 'uncalled_response' end |