Class: Bci::Stats
Overview
The class for BCI indicadores API
Constant Summary
Constants inherited
from Base
Base::BASE_URL
Instance Method Summary
collapse
Methods inherited from Base
#connector, #headers, #initialize, #response_checker, #url
Constructor Details
This class inherits a constructor from Bci::Base
Instance Method Details
#atm ⇒ Object
25
26
27
28
29
30
|
# File 'lib/bci/stats.rb', line 25
def atm
local_url = "#{url}/cajeros"
response_checker(connector.get(local_url, ))
rescue RestClient::InternalServerError => e
puts e
end
|
#branch_offices ⇒ Object
18
19
20
21
22
23
|
# File 'lib/bci/stats.rb', line 18
def branch_offices
local_url = "#{url}/sucursales"
response_checker(connector.get(local_url, ))
rescue RestClient::InternalServerError => e
puts e
end
|
#indicators ⇒ Object
10
11
12
13
14
15
16
|
# File 'lib/bci/stats.rb', line 10
def indicators
local_url = "#{url}/indicadores"
puts local_url
response_checker(connector.get(local_url, ))
rescue RestClient::InternalServerError => e
puts e
end
|
#submodule ⇒ Object
6
7
8
|
# File 'lib/bci/stats.rb', line 6
def submodule
'info-banco'
end
|