Class: AndroidServices::GoogleCloudMessaging::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/android_services/cloud_message/response.rb

Instance Method Summary collapse

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