Exception: Servactory::Exceptions::Output
- Defined in:
- lib/servactory/exceptions/output.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#meta ⇒ Object
readonly
Returns the value of attribute meta.
-
#output_name ⇒ Object
readonly
Returns the value of attribute output_name.
-
#service ⇒ Object
readonly
Returns the value of attribute service.
Instance Method Summary collapse
-
#initialize(context:, message:, output_name: nil, meta: nil) ⇒ Output
constructor
A new instance of Output.
Constructor Details
#initialize(context:, message:, output_name: nil, meta: nil) ⇒ Output
Returns a new instance of Output.
11 12 13 14 15 16 17 18 19 |
# File 'lib/servactory/exceptions/output.rb', line 11 def initialize(context:, message:, output_name: nil, meta: nil) @context = context @service = context.send(:servactory_service_info) @message = @output_name = output_name&.to_sym @meta = super() end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
6 7 8 |
# File 'lib/servactory/exceptions/output.rb', line 6 def @message end |
#meta ⇒ Object (readonly)
Returns the value of attribute meta.
6 7 8 |
# File 'lib/servactory/exceptions/output.rb', line 6 def @meta end |
#output_name ⇒ Object (readonly)
Returns the value of attribute output_name.
6 7 8 |
# File 'lib/servactory/exceptions/output.rb', line 6 def output_name @output_name end |
#service ⇒ Object (readonly)
Returns the value of attribute service.
6 7 8 |
# File 'lib/servactory/exceptions/output.rb', line 6 def service @service end |