Module: Pushbullet::SecretAPI
- Included in:
- Client
- Defined in:
- lib/pushbullet/secret_api.rb
Instance Method Summary collapse
- #contacts ⇒ Object
- #push_address_to(target_email, title, address) ⇒ Object
- #push_link_to(target_email, title, url) ⇒ Object
-
#push_list_to(target_email, title, items) ⇒ Object
FIXME Now, can send only one item.
- #push_note_to(target_email, title, body) ⇒ Object
Instance Method Details
#contacts ⇒ Object
3 4 5 |
# File 'lib/pushbullet/secret_api.rb', line 3 def contacts get('/v2/contacts') end |
#push_address_to(target_email, title, address) ⇒ Object
15 16 17 |
# File 'lib/pushbullet/secret_api.rb', line 15 def push_address_to(target_email, title, address) push_to :address, target_email, title: title, address: address end |
#push_link_to(target_email, title, url) ⇒ Object
11 12 13 |
# File 'lib/pushbullet/secret_api.rb', line 11 def push_link_to(target_email, title, url) push_to :link, target_email, title: title, url: url end |
#push_list_to(target_email, title, items) ⇒ Object
FIXME Now, can send only one item
20 21 22 |
# File 'lib/pushbullet/secret_api.rb', line 20 def push_list_to(target_email, title, items) push_to :list, target_email, title: title, items: items end |
#push_note_to(target_email, title, body) ⇒ Object
7 8 9 |
# File 'lib/pushbullet/secret_api.rb', line 7 def push_note_to(target_email, title, body) push_to :note, target_email, title: title, body: body end |