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.
42 43 44 45 46 47 |
# File 'lib/localvault/cli.rb', line 42 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.
40 41 42 |
# File 'lib/localvault/cli.rb', line 40 def candidates @candidates end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind.
40 41 42 |
# File 'lib/localvault/cli.rb', line 40 def kind @kind end |
#query ⇒ Object (readonly)
Returns the value of attribute query.
40 41 42 |
# File 'lib/localvault/cli.rb', line 40 def query @query end |
Instance Method Details
#exit_status ⇒ Object
49 50 51 |
# File 'lib/localvault/cli.rb', line 49 def exit_status 1 end |