Class: LocalVault::CLI::GroupSelectionError
- Inherits:
-
Thor::Error
- Object
- Thor::Error
- LocalVault::CLI::GroupSelectionError
- 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.
-
#query ⇒ Object
readonly
Returns the value of attribute query.
Instance Method Summary collapse
- #exit_status ⇒ Object
-
#initialize(kind, query:, candidates: []) ⇒ GroupSelectionError
constructor
A new instance of GroupSelectionError.
Constructor Details
#initialize(kind, query:, candidates: []) ⇒ GroupSelectionError
Returns a new instance of GroupSelectionError.
41 42 43 44 45 46 |
# File 'lib/localvault/cli.rb', line 41 def initialize(kind, query:, candidates: []) @kind = kind @query = query @candidates = candidates super("group selection failed") end |
Instance Attribute Details
#candidates ⇒ Object (readonly)
Returns the value of attribute candidates.
39 40 41 |
# File 'lib/localvault/cli.rb', line 39 def candidates @candidates end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind.
39 40 41 |
# File 'lib/localvault/cli.rb', line 39 def kind @kind end |
#query ⇒ Object (readonly)
Returns the value of attribute query.
39 40 41 |
# File 'lib/localvault/cli.rb', line 39 def query @query end |
Instance Method Details
#exit_status ⇒ Object
48 49 50 |
# File 'lib/localvault/cli.rb', line 48 def exit_status 1 end |