src/format_helper.rb
# TODO: refactor this, inconsistent with other method
refactor this, inconsistent with other method
refactor this inconsistent with other method
def print_spec(data)
    result = ''
    result << "#{Emoji.trend(data[:change_amount].to_f)}"
    result << "  $#{data[:amount]}  #{data[:change_amount]}  #{data[:change_percent]}\n"
    result << "[dividend]   $#{data[:dividend]}\n"
    result << "[pe ratio]   $#{data[:pe]}\n"
    result << "[volume]     #{data[:volume]}\n\n"
    result
  end
def print_spec ( data ) result = '' result << "#{Emoji.trend(data[:change_amount].to_f)}" result << "  $#{data[:amount]}  #{data[:change_amount]}  #{data[:change_percent]}\n" result << "[dividend]   $#{data[:dividend]}\n" result << "[pe ratio]   $#{data[:pe]}\n" result << "[volume]     #{data[:volume]}\n\n" result end
TODO: refactor this, inconsistent with other method
TODO : refactor this inconsistent with other method
data
<not_specific>