Class: NucleusCore::View

Inherits:
SimpleObject show all
Defined in:
lib/nucleus_core/views/view.rb

Direct Known Subclasses

ErrorView

Instance Attribute Summary

Attributes inherited from SimpleObject

#__attributes__

Instance Method Summary collapse

Methods inherited from SimpleObject

#initialize, #to_h

Constructor Details

This class inherits a constructor from NucleusCore::SimpleObject

Instance Method Details

#json_responseObject



4
5
6
# File 'lib/nucleus_core/views/view.rb', line 4

def json_response
  NucleusCore::JsonResponse.new(content: to_h, status: :ok)
end