Class: CompaniesHouseInputGateway::Client

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config = nil) ⇒ Client

Returns a new instance of Client.



5
6
7
# File 'lib/companies_house_input_gateway/client.rb', line 5

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

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



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

def config
  @config
end

Instance Method Details

#perform_check(*args) ⇒ Object



9
10
11
12
# File 'lib/companies_house_input_gateway/client.rb', line 9

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