Class: IonicPush::Request

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/ionic_push/request.rb

Instance Method Summary collapse

Constructor Details

#initialize(configuration, data) ⇒ Request

Returns a new instance of Request.

[View source]

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

#sendObject

[View source]

15
16
17
# File 'lib/ionic_push/request.rb', line 15

def send
  self.class.post('/notifications', request_params)
end