Class: Pushbullet::Contact

Inherits:
Resource
  • Object
show all
Includes:
Pushable
Defined in:
lib/pushbullet/contact.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(name, email) ⇒ Object


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

def self.create(name, email)
  super(name: name, email: email)
end

.meObject


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

def self.me
  new Pushbullet.client.get('users/me')
end

Instance Method Details

#saveObject


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

def save
  super(name: name)
end

#target_idObject


17
18
19
# File 'lib/pushbullet/contact.rb', line 17

def target_id
  email
end