Class: Indexmap::Pinger::Google

Inherits:
Base
  • Object
show all
Defined in:
lib/indexmap/pinger/google.rb

Instance Method Summary collapse

Methods inherited from Base

#logger, ping

Constructor Details

#initialize(configuration: Indexmap.configuration, service: nil, credentials_builder: nil) ⇒ Google

Returns a new instance of Google.



11
12
13
14
15
# File 'lib/indexmap/pinger/google.rb', line 11

def initialize(configuration: Indexmap.configuration, service: nil, credentials_builder: nil)
  super(configuration: configuration)
  @service = service
  @credentials_builder = credentials_builder
end

Instance Method Details

#pingObject



17
18
19
20
21
22
23
24
# File 'lib/indexmap/pinger/google.rb', line 17

def ping
  if google_configuration.credentials.to_s.strip.empty?
    logger.debug("Google sitemap credentials not configured.")
    return
  end

  super
end