Class: RubyPushNotifications::FCM::FCMRequest

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/ruby-push-notifications/fcm/fcm_request.rb

Overview

Encapsulates a connection to the FCM service Responsible for final connection with the service.

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ FCMRequest

Returns a new instance of FCMRequest.



18
19
20
# File 'lib/ruby-push-notifications/fcm/fcm_request.rb', line 18

def initialize(params = {})
  @params = params
end

Instance Method Details

#make_requestObject



21
22
23
# File 'lib/ruby-push-notifications/fcm/fcm_request.rb', line 21

def make_request
  response = self.class.post('/send', @params)
end