Class: Restspec::Endpoints::Request

Inherits:
Struct
  • Object
show all
Defined in:
lib/restspec/endpoints/request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#endpointObject

Returns the value of attribute endpoint.



4
5
6
# File 'lib/restspec/endpoints/request.rb', line 4

def endpoint
  @endpoint
end

#headersObject

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



3
4
5
# File 'lib/restspec/endpoints/request.rb', line 3

def headers
  @headers
end

#methodObject

Returns the value of attribute method

Returns:

  • (Object)

    the current value of method



3
4
5
# File 'lib/restspec/endpoints/request.rb', line 3

def method
  @method
end

#payloadObject

Returns the value of attribute payload

Returns:

  • (Object)

    the current value of payload



3
4
5
# File 'lib/restspec/endpoints/request.rb', line 3

def payload
  @payload
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



3
4
5
# File 'lib/restspec/endpoints/request.rb', line 3

def url
  @url
end

Instance Method Details

#raw_payloadObject



6
7
8
# File 'lib/restspec/endpoints/request.rb', line 6

def raw_payload
  @raw_payload ||= (payload || '').to_json
end