com.github.theresasogunle.Bank.getAllBanks()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 4
rs 10
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