Module: ServiceCore::Output

Extended by:
ActiveSupport::Concern
Included in:
Responder
Defined in:
lib/service_core/output.rb

Constant Summary collapse

ALLOWED_KEYS =
ServiceCore::Response::ALLOWED_KEYS

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#outputObject (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