kylewelsby/Banker

View on GitHub
lib/banker/capital_one_uk.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method get_data has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def get_data
      limit = -@page.at("table[summary='account summary'] tr:nth-child(1) td.normalText:nth-child(2)").content.gsub(/\D/,'').to_i
      amount = -@page.at("table[summary='account summary'] tr:nth-child(2) td.normalText:nth-child(2)").content.gsub(/\D/,'').to_i
      account_number = @page.at("table:first-child tr:nth-child(5) td b").
        content.to_i
Severity: Minor
Found in lib/banker/capital_one_uk.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status