Class: AndroidServices::GoogleCloudMessaging::Response
- Inherits:
-
Object
- Object
- AndroidServices::GoogleCloudMessaging::Response
- Defined in:
- lib/android_services/cloud_message/response.rb
Instance Method Summary collapse
-
#initialize(response) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(response) ⇒ Response
Returns a new instance of Response.
5 6 7 8 9 10 11 12 |
# File 'lib/android_services/cloud_message/response.rb', line 5 def initialize response unless response.body.nil? @body ||= response.body instantiate_attributes end @status ||= response.code eval_response end |