Exception: Gate::Command::InvalidCommand
- Inherits:
-
StandardError
- Object
- StandardError
- Gate::Command::InvalidCommand
- Defined in:
- lib/gate/command.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
- #full_message ⇒ Object
-
#initialize(errors) ⇒ InvalidCommand
constructor
A new instance of InvalidCommand.
Constructor Details
#initialize(errors) ⇒ InvalidCommand
Returns a new instance of InvalidCommand.
19 20 21 22 |
# File 'lib/gate/command.rb', line 19 def initialize(errors) @errors = errors super("Invalid command") end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
17 18 19 |
# File 'lib/gate/command.rb', line 17 def errors @errors end |
Instance Method Details
#full_message ⇒ Object
24 25 26 |
# File 'lib/gate/command.rb', line 24 def errors.values.join(", ") end |