Sha256: b22d7e3aedbf1a86ffa72f39f1023e65bfcd4cfa40e53d9b48808d42cb32847c
Contents?: true
Size: 549 Bytes
Versions: 5
Compression:
Stored size: 549 Bytes
Contents
module Dimelo::CCP module API module Common module Openable def open path = "#{compute_path(attributes)}/open" response = client.transport(:put, path) self.attributes = Dimelo::CCP::API.decode_json(response) errors.empty? end def close path = "#{compute_path(attributes)}/close" response = client.transport(:put, path) self.attributes = Dimelo::CCP::API.decode_json(response) errors.empty? end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems