Sha256: 58fcfc791e140ae22c77068b3082ee03b4a0f942f67d26972c0665d230d5744d
Contents?: true
Size: 829 Bytes
Versions: 4
Compression:
Stored size: 829 Bytes
Contents
module NestConnect class API class Devices class Camera < API def initialize(device_id) @device_id = device_id end def put(body) connection.put do |request| request.url(url) request.headers.merge!(headers) request.body = body end end def get connection.get do |request| request.url(url) request.headers.merge!(headers) end end private attr_reader :device_id def url "devices/cameras/#{device_id}" end def headers { 'Content-Type' => 'application/json', 'Authorization' => "Bearer #{access_token}" } end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems