Class: Apia::MockRequest
- Defined in:
- lib/apia/mock_request.rb
Instance Attribute Summary collapse
Attributes inherited from Request
#api, #api_path, #arguments, #authenticator, #controller, #endpoint, #identity, #namespace, #route
Instance Method Summary collapse
Methods inherited from Request
#body?, empty, #headers, #params
Instance Attribute Details
#ip ⇒ Object
12 13 14 |
# File 'lib/apia/mock_request.rb', line 12 def ip @ip ||= '127.0.0.1' end |
Instance Method Details
#json_body ⇒ Object
8 9 10 |
# File 'lib/apia/mock_request.rb', line 8 def json_body @json_body ||= {} end |