lib/digital_opera/banker.rb
def banker_convert_currency(value, conversion)
      case conversion.to_sym
      when :to_cents
        return (value.to_s.gsub(/,/, '').to_d * 100).to_i
      when :to_dollars
        return "%0.2f" % (value.to_f / 100)
      end
    end
def banker_convert_currency(value, conversion)
      case conversion.to_sym
      when :to_cents
        return (value.to_s.gsub(/,/, '').to_d * 100).to_i
      when :to_dollars
        return "%0.2f" % (value.to_f / 100)
      end
    end
Instance Methods --------------------------------------------------------