Class: Yahoo::SE::UpdateNotification

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

Constant Summary collapse

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

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ UpdateNotification

Returns a new instance of UpdateNotification.



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

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

Instance Method Details

#responseObject



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

def response
  raise ApplicationIDNotSet if Yahoo::SE.application_id.nil?
  Yahoo::SE::Request.new(Yahoo::SE::UpdateNotification::SERVICE_PATH, @options).response
end