Class: Yahoo::SE::Ping

Inherits:
Object
  • Object
show all
Defined in:
lib/yahoo-se/ping.rb

Constant Summary collapse

SERVICE_PATH =
"#{Yahoo::SE::SERVICE_PATH}/ping"

Instance Method Summary collapse

Constructor Details

#initialize(sitemap) ⇒ Ping

Returns a new instance of Ping.



17
18
19
20
21
22
# File 'lib/yahoo-se/ping.rb', line 17

def initialize(sitemap)
  @sitemap = sitemap
  @options = {}
  @options[:sitemap] = sitemap
  response
end

Instance Method Details

#responseObject



24
25
26
# File 'lib/yahoo-se/ping.rb', line 24

def response
  Yahoo::SE::Request.new(Yahoo::SE::Ping::SERVICE_PATH, @options).response
end