com.github.theresasogunle.Bank   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
rs 10
wmc 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
getAllBanks 0 4 ?
A getAllBanks() 0 4 1
1
/*
2
 * To change this license header, choose License Headers in Project Properties.
3
 * To change this template file, choose Tools | Templates
4
 * and open the template in the editor.
5
 */
6
package com.github.theresasogunle;
7
8
import com.mashape.unirest.http.JsonNode;
9
10
11
/**
12
 *
13
 * @author Theresa
14
 */
15
public class Bank {
16
    private ApiConnection apiConnection;
17
    Endpoints ed= new Endpoints();
18
    
19
    public JsonNode getAllBanks(){
20
        this.apiConnection = new ApiConnection(ed.getBankEndPoint());
21
        
22
        return this.apiConnection.connectAndQueryWithGet();
23
    }
24
    
25
}
26