Class: Apia::MockRequest

Inherits:
Request
  • Object
show all
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

#ipObject



12
13
14
# File 'lib/apia/mock_request.rb', line 12

def ip
  @ip ||= '127.0.0.1'
end

Instance Method Details

#json_bodyObject



8
9
10
# File 'lib/apia/mock_request.rb', line 8

def json_body
  @json_body ||= {}
end