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