Class: Pushbullet::Push

Inherits:
Resource
  • Object
show all
Defined in:
lib/pushbullet/push.rb

Class Method Summary collapse

Methods inherited from Resource

all, #destroy, #save

Class Method Details

.create(type, iden, payload) ⇒ Object


4
5
6
7
# File 'lib/pushbullet/push.rb', line 4

def self.create(type, iden, payload)
  id = iden[/[email protected]?/].nil? ? :device_iden : :email
  super(payload.merge(type: type, id => iden))
end

.pathObject


9
10
11
# File 'lib/pushbullet/push.rb', line 9

def self.path
  'pushes'
end