Class: Yahoo::SE::Ping
- Inherits:
-
Object
- Object
- Yahoo::SE::Ping
- Defined in:
- lib/yahoo-se/ping.rb
Constant Summary collapse
- SERVICE_PATH =
"#{Yahoo::SE::SERVICE_PATH}/ping"
Instance Method Summary collapse
-
#initialize(sitemap) ⇒ Ping
constructor
A new instance of Ping.
- #response ⇒ Object
Constructor Details
#initialize(sitemap) ⇒ Ping
17 18 19 20 21 22 |
# File 'lib/yahoo-se/ping.rb', line 17 def initialize(sitemap) @sitemap = sitemap = {} [:sitemap] = sitemap response end |
Instance Method Details
#response ⇒ Object
24 25 26 |
# File 'lib/yahoo-se/ping.rb', line 24 def response Yahoo::SE::Request.new(Yahoo::SE::Ping::SERVICE_PATH, ).response end |