Class: RubyPushNotifications::FCM::FCMRequest
- Inherits:
-
Object
- Object
- RubyPushNotifications::FCM::FCMRequest
- 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
-
#initialize(params = {}) ⇒ FCMRequest
constructor
A new instance of FCMRequest.
- #make_request ⇒ Object
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_request ⇒ Object
21 22 23 |
# File 'lib/ruby-push-notifications/fcm/fcm_request.rb', line 21 def make_request response = self.class.post('/send', @params) end |