Module: Pushbullet::Pushable

Included in:
Channel, Contact, Device
Defined in:
lib/pushbullet/pushable.rb

Instance Method Summary collapse

Instance Method Details

#push_address(name, address) ⇒ Object


12
13
14
# File 'lib/pushbullet/pushable.rb', line 12

def push_address(name, address)
  Push.create :address, target_id, name: name, address: address
end

8
9
10
# File 'lib/pushbullet/pushable.rb', line 8

def push_link(title, url, body)
  Push.create :link, target_id, title: title, url: url, body: body
end

#push_list(title, items) ⇒ Object


16
17
18
# File 'lib/pushbullet/pushable.rb', line 16

def push_list(title, items)
  Push.create :list, target_id, title: title, items: items
end

#push_note(title, body) ⇒ Object


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

def push_note(title, body)
  Push.create :note, target_id, title: title, body: body
end