Class: Yahoo::SE::UpdateNotification
- Inherits:
-
Object
- Object
- Yahoo::SE::UpdateNotification
- Defined in:
- lib/yahoo-se/update_notification.rb
Constant Summary collapse
- SERVICE_PATH =
"#{Yahoo::SE::SERVICE_PATH}/updateNotification"
Instance Method Summary collapse
-
#initialize(url) ⇒ UpdateNotification
constructor
A new instance of UpdateNotification.
- #response ⇒ Object
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
#response ⇒ Object
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 |