Class: NucleusCore::JsonResponse
- Inherits:
-
ResponseAdapter
- Object
- SimpleObject
- ResponseAdapter
- NucleusCore::JsonResponse
- Defined in:
- lib/nucleus_core/response_adapters/json_response.rb
Instance Attribute Summary
Attributes inherited from SimpleObject
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ JsonResponse
constructor
A new instance of JsonResponse.
Methods inherited from SimpleObject
Constructor Details
#initialize(attrs = {}) ⇒ JsonResponse
Returns a new instance of JsonResponse.
4 5 6 7 8 |
# File 'lib/nucleus_core/response_adapters/json_response.rb', line 4 def initialize(attrs={}) attrs = attrs.merge(type: "application/json") super(attrs) end |