Class: ExperianAddressValidation::Client

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

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configObject (readonly)

Returns the value of attribute config.



6
7
8
# File 'lib/experian_address_validation/client.rb', line 6

def config
  @config
end

Class Method Details

.configure {|config| ... } ⇒ Object

Yields:

Raises:

  • (ArgumentError)


8
9
10
11
12
13
# File 'lib/experian_address_validation/client.rb', line 8

def configure
  raise ArgumentError, "block not given" unless block_given?

  @config = Config.new
  yield config
end