Class: CompaniesHouseGateway::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/companies_house_gateway/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(config = nil) ⇒ Client

Returns a new instance of Client.



3
4
5
# File 'lib/companies_house_gateway/client.rb', line 3

def initialize(config=nil)
  @config = (config || CompaniesHouseGateway.config).clone
end

Instance Method Details

#configObject



14
15
16
# File 'lib/companies_house_gateway/client.rb', line 14

def config
  @config
end

#perform_check(*args) ⇒ Object



7
8
9
10
11
12
# File 'lib/companies_house_gateway/client.rb', line 7

def perform_check(*args)
  with_caching(args) do
    request = Request.new(connection, @config)
    request.perform(*args)
  end
end