Module: MercuryBanking::CLI::Financials
- Included in:
- Main
- Defined in:
- lib/mercury_banking/cli/financials.rb
Overview
Module for financial report commands
Defined Under Namespace
Classes: FinancialsCommand
Class Method Summary collapse
-
.included(base) ⇒ Object
Add financial report commands to the CLI class.
Class Method Details
.included(base) ⇒ Object
Add financial report commands to the CLI class
211 212 213 214 215 216 217 218 219 220 221 222 223 224 |
# File 'lib/mercury_banking/cli/financials.rb', line 211 def self.included(base) base.class_eval do # Register the financials command desc "financials SUBCOMMAND", "Financial reporting commands" subcommand "financials", FinancialsCommand # Set the parent class for the subcommand FinancialsCommand.parent_class = base # Remove the old methods with underscores if they exist remove_method :financials_balancesheet if method_defined?(:financials_balancesheet) remove_method :financials_incomestatement if method_defined?(:financials_incomestatement) end end |