Class: TokenHawk::CLI::Commands::Costs
- Inherits:
-
Object
- Object
- TokenHawk::CLI::Commands::Costs
- Includes:
- Formatter
- Defined in:
- lib/token_hawk/cli/commands/costs.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Costs
constructor
A new instance of Costs.
- #run ⇒ Object
Methods included from Formatter
Constructor Details
#initialize(options = {}) ⇒ Costs
Returns a new instance of Costs.
11 12 13 |
# File 'lib/token_hawk/cli/commands/costs.rb', line 11 def initialize( = {}) @options = end |
Instance Method Details
#run ⇒ Object
15 16 17 18 |
# File 'lib/token_hawk/cli/commands/costs.rb', line 15 def run results = grouped_results(scoped_records) @options["format"] == "json" ? print_json(results) : print_table(results) end |