Class: AcmeNsupdate::Client::DebuggableClient

Inherits:
Acme::Client
  • Object
show all
Defined in:
lib/acme_nsupdate/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#loggerObject

Returns the value of attribute logger.



18
19
20
# File 'lib/acme_nsupdate/client.rb', line 18

def logger
  @logger
end

Instance Method Details

#new_connection(endpoint:) ⇒ Object



20
21
22
23
24
25
# File 'lib/acme_nsupdate/client.rb', line 20

def new_connection endpoint:
  super do |configuration|
    yield(configuration) if block_given?
    configuration.response :detailed_logger, @logger if @logger
  end
end