Sha256: d186c2ef0f65a09bd9105f5c7d5e481d721ffe42281cb9197c20d48a4f8fff60

Contents?: true

Size: 847 Bytes

Versions: 1

Compression:

Stored size: 847 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, device_identifier: nil, params: {})
        PushbulletRuby::Pushable::Note.push(self, receiver, device_identifier, params)
      end

      def push_link(receiver: nil, device_identifier: nil, params: {})
        PushbulletRuby::Pushable::Link.push(self, receiver, device_identifier, params)
      end

      def push_file(receiver: nil, device_identifier: nil, params: {})
        PushbulletRuby::Pushable::File.push(self, receiver, device_identifier, 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.3 lib/pushbullet_ruby/api/pushes.rb