Class: Auth::Endpoint

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document
Defined in:
app/models/auth/endpoint.rb

Instance Method Summary collapse

Instance Method Details

#set_android_endpointObject



9
10
11
12
13
14
15
16
# File 'app/models/auth/endpoint.rb', line 9

def set_android_endpoint
	if response = $sns_client.create_platform_endpoint(platform_application_arn: ENV["ANDROID_ARN"], token: self.android_token, attributes: {})
		self.android_endpoint = response.endpoint_arn
		self.android_endpoint
	else
		nil
	end
end

#set_ios_endpointObject



18
19
20
# File 'app/models/auth/endpoint.rb', line 18

def set_ios_endpoint

end