Sha256: 717f2321ed82ba0a9045af2a4c72158af83cd05d5ccee9c72359027fa2e5acb9
Contents?: true
Size: 757 Bytes
Versions: 1
Compression:
Stored size: 757 Bytes
Contents
require 'pushbullet_ruby/pushable' require 'pushbullet_ruby/pushable/note' require 'pushbullet_ruby/pushable/link' require 'pushbullet_ruby/pushable/file' module PushbulletRuby module API module Pushes def push_note(receiver: nil, id: nil, params: {}) PushbulletRuby::Pushable::Note.push(self, receiver, id, params) end def push_link(receiver: nil, id: nil, params: {}) PushbulletRuby::Pushable::Link.push(self, receiver, id, params) end def push_file(receiver: nil, id: nil, params: {}) PushbulletRuby::Pushable::File.push(self, receiver, id, params) end def pushes PushbulletRuby::Push.from_response(get('/v2/pushes')) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pushbullet_ruby-1.0.4.1 | lib/pushbullet_ruby/api/pushes.rb |