Class: Pike13::CLI::Commands::Report::Pays
- Includes:
- Concerns::ReportingQuery
- Defined in:
- lib/pike13/cli/commands/report/pays.rb
Instance Method Summary collapse
Methods included from Concerns::ReportingQuery
Methods inherited from Base
base_usage, format_options, handle_argument_error, printable_commands
Methods included from ThorNestedSubcommand
Instance Method Details
#query ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/pike13/cli/commands/report/pays.rb', line 13 def query handle_error do params = build_query_params params[:fields] ||= %w[pay_id staff_name service_name final_pay_amount pay_state] result = with_progress("Fetching pays report") do Pike13::Reporting::Pays.query(**params) end output(result) end end |