Module: ServiceCore::Output

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

Constant Summary collapse

ALLOWED_KEYS =
%i[status data message errors].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

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