Class: ApartmentAcmeClient::AcmeClient::Proxy

Inherits:
Object
  • Object
show all
Defined in:
lib/apartment_acme_client/acme_client/proxy.rb

Class Method Summary collapse

Class Method Details

.base_classObject



8
9
10
11
# File 'lib/apartment_acme_client/acme_client/proxy.rb', line 8

def self.base_class
  # allow overriding the AcmeClient
  ApartmentAcmeClient.acme_client_class || AcmeClient::RealClient
end

.singleton(options = {}) ⇒ Object



4
5
6
# File 'lib/apartment_acme_client/acme_client/proxy.rb', line 4

def self.singleton(options = {})
  base_class.new(options)
end