class Pragma::Operation::Response::Created
Represents the 201 Created
HTTP response.
Public Class Methods
new(entity: nil, headers: {})
click to toggle source
Initializes the response.
@param entity [Object] the response's entity @param headers [Hash] the response's headers
Calls superclass method
Pragma::Operation::Response::new
# File lib/pragma/operation/response/created.rb, line 12 def initialize(entity: nil, headers: {}) super(status: 201, entity: entity, headers: headers) end