Module: ServiceCore::Output
Constant Summary collapse
- ALLOWED_KEYS =
ServiceCore::Response::ALLOWED_KEYS
Instance Attribute Summary collapse
-
#output ⇒ Object
(also: #response)
readonly
NOTE: output holds the ServiceCore::Response for the service.
Instance Method Summary collapse
Instance Attribute Details
#output ⇒ Object (readonly) Also known as: response
NOTE: output holds the ServiceCore::Response for the service. response is the preferred name; output is retained as an alias.
12 13 14 |
# File 'lib/service_core/output.rb', line 12 def output @output end |
Instance Method Details
#initialize(_attributes = {}) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/service_core/output.rb', line 15 def initialize(_attributes = {}) # NOTE: super() with empty parens so positional args aren't forwarded # up to other modules in the ancestor chain (ActiveModel::Model et al). super() @output_dirty = false @status_dirty = false @output = ServiceCore::Response.new end |