Class: Pragma::Operation::Response::NoContent

Inherits:
Pragma::Operation::Response show all
Defined in:
lib/pragma/operation/response/no_content.rb

Overview

Represents the 204 No Content HTTP response.

Constant Summary

Constants inherited from Pragma::Operation::Response

STATUSES

Instance Attribute Summary

Attributes inherited from Pragma::Operation::Response

#entity, #headers, #status

Instance Method Summary collapse

Methods inherited from Pragma::Operation::Response

#decorate_with, #failure?, #success?

Constructor Details

#initialize(headers: {}) ⇒ NoContent

Initializes the response.

Parameters:

  • headers (Hash) (defaults to: {})

    the response’s headers



11
12
13
# File 'lib/pragma/operation/response/no_content.rb', line 11

def initialize(headers: {})
  super(status: 204, entity: nil, headers: headers)
end