Class: Pushbullet::Contact
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
|
.me ⇒ Object
5
6
7
|
# File 'lib/pushbullet/contact.rb', line 5
def self.me
new Pushbullet.client.get('users/me')
end
|
Instance Method Details
#save ⇒ Object
13
14
15
|
# File 'lib/pushbullet/contact.rb', line 13
def save
super(name: name)
end
|
#target_id ⇒ Object
17
18
19
|
# File 'lib/pushbullet/contact.rb', line 17
def target_id
email
end
|