lib/banker/capital_one_uk.rb
Method get_data
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
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