Class: Pike13::CLI::Commands::Front::EventOccurrence
- Defined in:
- lib/pike13/cli/commands/front/event_occurrence.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/event_occurrence.rb', line 9 def self.base_usage "front event_occurrences" end |
Instance Method Details
#list ⇒ Object
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/pike13/cli/commands/front/event_occurrence.rb', line 22 def list validate_front_event_occurrence_date_formats handle_error do params = build_front_event_occurrence_params result = with_progress("Fetching event occurrences") do Pike13::Front::EventOccurrence.all(**params) end output(result) end end |