Class: Pike13::CLI::Commands::Front::PersonPlan
- Defined in:
- lib/pike13/cli/commands/front/person_plan.rb
Class Method Summary collapse
-
.base_usage ⇒ Object
Override base_usage to match the actual subcommand registration.
Instance Method Summary collapse
Methods inherited from Base
format_options, handle_argument_error, printable_commands
Methods included from ThorNestedSubcommand
Class Method Details
.base_usage ⇒ Object
Override base_usage to match the actual subcommand registration
9 10 11 |
# File 'lib/pike13/cli/commands/front/person_plan.rb', line 9 def self.base_usage "front person_plans" end |
Instance Method Details
#list(person_id) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/pike13/cli/commands/front/person_plan.rb', line 14 def list(person_id) handle_error do result = with_progress("Fetching person plans") do Pike13::Front::PersonPlan.all(person_id: person_id) end output(result) end end |