class Bci::Client

The class hub for all BCI APIs

Public Class Methods

new(params) click to toggle source
# File lib/bci/client.rb, line 4
def initialize(params)
  api_key = params[:key]

  @hipotecario = Bci::Hipotecario.new(api_key)
  @consumo = Bci::Consumo.new(api_key)
  @beneficios = Bci::Beneficios.new(api_key)
  @stats = Bci::Stats.new(api_key)
end

Public Instance Methods

beneficios() click to toggle source
# File lib/bci/client.rb, line 23
def beneficios
  raise 'Client is undefined' unless @beneficios
  @beneficios
end
consumo() click to toggle source
# File lib/bci/client.rb, line 18
def consumo
  raise 'Client is undefined' unless @consumo
  @consumo
end
hipotecario() click to toggle source
# File lib/bci/client.rb, line 13
def hipotecario
  raise 'Client is undefined' unless @hipotecario
  @hipotecario
end
stats() click to toggle source
# File lib/bci/client.rb, line 28
def stats
  raise 'Client is undefined' unless @stats
  @stats
end