29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# File 'lib/wiq/commands/locations.rb', line 29
def list
params = { "per_page" => 100 }
params["include_archived"] = true if options[:include_archived]
records, total = fetch_index("/api/v1/locations", params, key: "locations")
render_index(
records, total: total,
summary: "Listed #{records.size} locations#{options[:include_archived] ? " (including archived)" : ""}.",
breadcrumbs: [
{ "cmd" => "wiq locations show <id>", "description" => "Inspect a single location" },
{ "cmd" => "wiq rosters list --location <id>", "description" => "Rosters at a location" },
{ "cmd" => "wiq metrics show mrr --location <id>",
"description" => "Finance metrics scoped to a location (admin only)" }
]
)
end
|