class CoinSync::Outputs::Base
Public Class Methods
new(config, target_file)
click to toggle source
# File lib/coinsync/outputs/base.rb, line 19 def initialize(config, target_file) @config = config @target_file = target_file @formatter = Formatter.new(config) @classifier = CryptoClassifier.new(config) end
register_output(key)
click to toggle source
# File lib/coinsync/outputs/base.rb, line 11 def self.register_output(key) if Outputs.registered[key.to_sym] raise "Output has already been registered at '#{key}'" else Outputs.registered[key.to_sym] = self end end
Public Instance Methods
requires_currency_conversion?()
click to toggle source
# File lib/coinsync/outputs/base.rb, line 27 def requires_currency_conversion? false end