Class: Pragma::Operation::Response::Ok
- Inherits:
-
Pragma::Operation::Response
- Object
- Pragma::Operation::Response
- Pragma::Operation::Response::Ok
- Defined in:
- lib/pragma/operation/response/ok.rb
Overview
Represents the 200 Ok HTTP response.
Constant Summary
Constants inherited from Pragma::Operation::Response
Instance Attribute Summary
Attributes inherited from Pragma::Operation::Response
Instance Method Summary collapse
-
#initialize(entity: nil, headers: {}) ⇒ Ok
constructor
Initializes the response.
Methods inherited from Pragma::Operation::Response
#decorate_with, #failure?, #success?
Constructor Details
#initialize(entity: nil, headers: {}) ⇒ Ok
Initializes the response.
12 13 14 |
# File 'lib/pragma/operation/response/ok.rb', line 12 def initialize(entity: nil, headers: {}) super(status: 200, entity: entity, headers: headers) end |