Sha256: 824e89e5cc3103049e39289982304b8db3e9da4949a26e2135a5810987254c72
Contents?: true
Size: 553 Bytes
Versions: 1
Compression:
Stored size: 553 Bytes
Contents
require 'pushbullet_ruby/push' module PushbulletRuby module API module Subscriptions def subscriptions PushbulletRuby::Channel.from_response(get('/v2/subscriptions')) end def channel_info(tag) PushbulletRuby::Channel.new(get('/v2/channel-info', tag: tag).body) end def recent_pushes(tag) pushes = [] channel_info(tag).body['recent_pushes'].each do |push| pushes << PushbulletRuby::Push.new(push) end pushes end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pushbullet_ruby-1.0.1 | lib/pushbullet_ruby/api/subscriptions.rb |