Class: Callapi::Call::Request::Mock
- Inherits:
-
Base
- Object
- Base
- Callapi::Call::Request::Mock
show all
- Defined in:
- lib/callapi/call/request/mock.rb
Constant Summary
collapse
- MOCK_FORMAT =
TODO: should not be hardcoded
'.json'
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#code ⇒ Object
9
10
11
|
# File 'lib/callapi/call/request/mock.rb', line 9
def code
'200'
end
|
#response ⇒ Object
5
6
7
|
# File 'lib/callapi/call/request/mock.rb', line 5
def response
OpenStruct.new(body: body, code: code)
end
|