Exception: CommandServiceObject::Failure
- Inherits:
-
StandardError
- Object
- StandardError
- CommandServiceObject::Failure
- Defined in:
- lib/command_service_object/failure.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
Instance Method Summary collapse
-
#initialize(message: nil, command: {}) ⇒ Failure
constructor
A new instance of Failure.
Constructor Details
#initialize(message: nil, command: {}) ⇒ Failure
Returns a new instance of Failure.
5 6 7 8 |
# File 'lib/command_service_object/failure.rb', line 5 def initialize(message: nil, command: {}) @command = command super() end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
3 4 5 |
# File 'lib/command_service_object/failure.rb', line 3 def command @command end |