Class: Pushbullet::Device

Inherits:
Resource
  • Object
show all
Includes:
Pushable
Defined in:
lib/pushbullet/device.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Pushable

#push_address, #push_link, #push_list, #push_note

Methods inherited from Resource

all, #destroy, path

Class Method Details

.create(nickname, type) ⇒ Object


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

def self.create(nickname, type)
  super(nickname: nickname, type: type)
end

Instance Method Details

#saveObject


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

def save
  super(nickname: nickname)
end

#target_idObject


13
14
15
# File 'lib/pushbullet/device.rb', line 13

def target_id
  iden
end