Class: Pike13::CLI::Commands::Desk::Visit

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

Instance Method Summary collapse

Methods inherited from Base

base_usage, format_options, handle_argument_error, printable_commands

Methods included from ThorNestedSubcommand

included

Instance Method Details

#get(id) ⇒ Object



10
11
12
# File 'lib/pike13/cli/commands/desk/visit.rb', line 10

def get(id)
  handle_error { output(Pike13::Desk::Visit.find(id)) }
end

#summaryObject



17
18
19
# File 'lib/pike13/cli/commands/desk/visit.rb', line 17

def summary
  handle_error { output(Pike13::Desk::Visit.summary(person_id: options[:person_id])) }
end