Class: TheFox::Wallet::HtmlCommand
- Defined in:
- lib/wallet/command_html.rb
Overview
Exports a wallet as HTML. List all years in an index HTML file and all months for each year. Generates a HTML file for each month based on entries.
Constant Summary collapse
- NAME =
'html'
Instance Method Summary collapse
Methods inherited from Command
create_by_name, #initialize, is_matching_class
Constructor Details
This class inherits a constructor from TheFox::Wallet::Command
Instance Method Details
#run ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/wallet/command_html.rb', line 13 def run if @options[:path] html_path = Pathname.new(@options[:path]). end wallet = Wallet.new(@options[:wallet_path]) wallet.logger = @options[:logger] wallet.generate_html(html_path, @options[:entry_date_start], @options[:entry_date_end], @options[:entry_category]) end |