Class: Pike13::CLI::Commands::Desk::EventOccurrenceVisit

Inherits:
Base
  • Object
show all
Defined in:
lib/pike13/cli/commands/desk/event_occurrence_visit.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

format_options, handle_argument_error, printable_commands

Methods included from ThorNestedSubcommand

included

Class Method Details

.base_usageObject

Override base_usage to match the actual subcommand registration



9
10
11
# File 'lib/pike13/cli/commands/desk/event_occurrence_visit.rb', line 9

def self.base_usage
  "desk event_occurrence_visits"
end

Instance Method Details

#list(event_occurrence_id) ⇒ Object



14
15
16
17
18
19
20
21
# File 'lib/pike13/cli/commands/desk/event_occurrence_visit.rb', line 14

def list(event_occurrence_id)
  handle_error do
    result = with_progress("Fetching event occurrence visits") do
      Pike13::Desk::EventOccurrenceVisit.all(event_occurrence_id: event_occurrence_id)
    end
    output(result)
  end
end