Class: IonicPush::Request
- Inherits:
-
Object
- Object
- IonicPush::Request
- Includes:
- HTTParty
- Defined in:
- lib/ionic_push/request.rb
Instance Method Summary collapse
-
#initialize(configuration, data) ⇒ Request
constructor
A new instance of Request.
- #send ⇒ Object
Constructor Details
permalink #initialize(configuration, data) ⇒ Request
Returns a new instance of Request.
9 10 11 12 13 |
# File 'lib/ionic_push/request.rb', line 9 def initialize(configuration, data) @configuration = configuration @data = data @options = {} end |
Instance Method Details
permalink #send ⇒ Object
[View source]
15 16 17 |
# File 'lib/ionic_push/request.rb', line 15 def send self.class.post('/notifications', request_params) end |