Class: GiantClient::MockRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/giant_client/mock_request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



3
4
5
# File 'lib/giant_client/mock_request.rb', line 3

def body
  @body
end

#error_typeObject

Returns the value of attribute error_type.



3
4
5
# File 'lib/giant_client/mock_request.rb', line 3

def error_type
  @error_type
end

#headersObject

Returns the value of attribute headers.



3
4
5
# File 'lib/giant_client/mock_request.rb', line 3

def headers
  @headers
end

#hostObject

Returns the value of attribute host.



3
4
5
# File 'lib/giant_client/mock_request.rb', line 3

def host
  @host
end

#pathObject

Returns the value of attribute path.



3
4
5
# File 'lib/giant_client/mock_request.rb', line 3

def path
  @path
end

#portObject

Returns the value of attribute port.



3
4
5
# File 'lib/giant_client/mock_request.rb', line 3

def port
  @port
end

#queryObject

Returns the value of attribute query.



3
4
5
# File 'lib/giant_client/mock_request.rb', line 3

def query
  @query
end

#querystringObject

Returns the value of attribute querystring.



3
4
5
# File 'lib/giant_client/mock_request.rb', line 3

def querystring
  @querystring
end

#raised_errorObject

Returns the value of attribute raised_error.



3
4
5
# File 'lib/giant_client/mock_request.rb', line 3

def raised_error
  @raised_error
end

#sslObject

Returns the value of attribute ssl.



3
4
5
# File 'lib/giant_client/mock_request.rb', line 3

def ssl
  @ssl
end

#timeoutObject

Returns the value of attribute timeout.



3
4
5
# File 'lib/giant_client/mock_request.rb', line 3

def timeout
  @timeout
end

#urlObject

Returns the value of attribute url.



3
4
5
# File 'lib/giant_client/mock_request.rb', line 3

def url
  @url
end

Instance Method Details

#raised_error?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/giant_client/mock_request.rb', line 6

def raised_error?
  @raised_error
end