Sha256: 59e5f98aed37d5c4772285375624dd4859569dd785ec1411a50f8f14f53f5d81

Contents?: true

Size: 544 Bytes

Versions: 11

Compression:

Stored size: 544 Bytes

Contents

module PushbulletRuby
  module API
    module Devices
      def devices
        PushbulletRuby::Device.from_responce(get('/v2/devices'))
      end

      def update_device(device_id: nil, params: {})
        PushbulletRuby::Device.new(post("/v2/devices/#{device_id}", params).body)
      end

      def create_device(params: {})
        PushbulletRuby::Device.new(post('/v2/devices', params).body)
      end

      def delete_device(device_id: nil)
        delete("/v2/devices/#{device_id}").body
      end
    end
  end
end

Version data entries

11 entries across 10 versions & 2 rubygems

Version Path
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/pushbullet_ruby-1.1.4/lib/pushbullet_ruby/api/devices.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/pushbullet_ruby-1.1.4/lib/pushbullet_ruby/api/devices.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/pushbullet_ruby-1.1.4/lib/pushbullet_ruby/api/devices.rb
tdiary-5.1.2 vendor/bundle/ruby/2.6.0/gems/pushbullet_ruby-1.1.4/lib/pushbullet_ruby/api/devices.rb
tdiary-5.1.1 vendor/bundle/ruby/2.6.0/gems/pushbullet_ruby-1.1.4/lib/pushbullet_ruby/api/devices.rb
pushbullet_ruby-1.1.4 lib/pushbullet_ruby/api/devices.rb
tdiary-5.0.8 vendor/bundle/gems/pushbullet_ruby-1.1.3/lib/pushbullet_ruby/api/devices.rb
pushbullet_ruby-1.1.3 lib/pushbullet_ruby/api/devices.rb
pushbullet_ruby-1.1.2 lib/pushbullet_ruby/api/devices.rb
pushbullet_ruby-1.1.1 lib/pushbullet_ruby/api/devices.rb
pushbullet_ruby-1.1.0 lib/pushbullet_ruby/api/devices.rb