Module: ServiceCore::Output
Constant Summary collapse
- ALLOWED_KEYS =
%i[status data message errors].freeze
Instance Attribute Summary collapse
-
#output ⇒ Object
readonly
NOTE: output attribute will hold output of the service.
Instance Method Summary collapse
Instance Attribute Details
#output ⇒ Object (readonly)
NOTE: output attribute will hold output of the service
13 14 15 |
# File 'lib/service_core/output.rb', line 13 def output @output end |
Instance Method Details
#initialize(_attributes = {}) ⇒ Object
15 16 17 18 19 |
# File 'lib/service_core/output.rb', line 15 def initialize(_attributes = {}) @output_dirty = false @status_dirty = false @output = { status: "initialized" } end |