Class: Pike13::CLI::Commands::Front::EventOccurrenceNote
- Defined in:
- lib/pike13/cli/commands/front/event_occurrence_note.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_note.rb', line 9 def self.base_usage "front event_occurrence_notes" end |
Instance Method Details
#get(event_occurrence_id, id) ⇒ Object
25 26 27 28 29 30 |
# File 'lib/pike13/cli/commands/front/event_occurrence_note.rb', line 25 def get(event_occurrence_id, id) handle_error do result = Pike13::Front::EventOccurrenceNote.find(event_occurrence_id: event_occurrence_id, id: id) output(result) end end |
#list(event_occurrence_id) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/pike13/cli/commands/front/event_occurrence_note.rb', line 14 def list(event_occurrence_id) handle_error do result = with_progress("Fetching event occurrence notes") do Pike13::Front::EventOccurrenceNote.all(event_occurrence_id: event_occurrence_id) end output(result) end end |