Sha256: 120f68a2e6da691c0239beadb8fbb44a3924978159fcbdf591380ed66979216f
Contents?: true
Size: 566 Bytes
Versions: 5
Compression:
Stored size: 566 Bytes
Contents
module Dimelo::CCP module API module Common module Publishable def publish path = "#{compute_path(attributes)}/publish" response = client.transport(:put, path) self.attributes = Dimelo::CCP::API.decode_json(response) errors.empty? end def unpublish path = "#{compute_path(attributes)}/unpublish" 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