Class: LocalVault::CLI::GroupSaveError
- Inherits:
-
Thor::Error
- Object
- Thor::Error
- LocalVault::CLI::GroupSaveError
- Defined in:
- lib/localvault/cli.rb
Instance Attribute Summary collapse
-
#candidates ⇒ Object
readonly
Returns the value of attribute candidates.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
Instance Method Summary collapse
- #exit_status ⇒ Object
-
#initialize(kind, candidates: []) ⇒ GroupSaveError
constructor
A new instance of GroupSaveError.
Constructor Details
#initialize(kind, candidates: []) ⇒ GroupSaveError
Returns a new instance of GroupSaveError.
28 29 30 31 32 |
# File 'lib/localvault/cli.rb', line 28 def initialize(kind, candidates: []) @kind = kind @candidates = candidates super("group save failed") end |
Instance Attribute Details
#candidates ⇒ Object (readonly)
Returns the value of attribute candidates.
26 27 28 |
# File 'lib/localvault/cli.rb', line 26 def candidates @candidates end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind.
26 27 28 |
# File 'lib/localvault/cli.rb', line 26 def kind @kind end |
Instance Method Details
#exit_status ⇒ Object
34 35 36 |
# File 'lib/localvault/cli.rb', line 34 def exit_status 1 end |