Sha256: 516b5ea26f227f654244077b1eabe5b85d6abbb3b32d55b4419e24e63cff3125
Contents?: true
Size: 582 Bytes
Versions: 35
Compression:
Stored size: 582 Bytes
Contents
class Ey::Core::Client::Blueprint < Ey::Core::Model extend Ey::Core::Associations identity :id attribute :data, type: :hash attribute :name attribute :created_at, type: :time attribute :updated_at, type: :time has_one :account has_one :environment def save! requires :id params = { "id" => self.id, "blueprint" => { "name" => self.name } } merge_attributes(self.connection.update_blueprint(params).body["blueprint"]) end def destroy self.connection.destroy_blueprint("id" => self.identity) end end
Version data entries
35 entries across 35 versions & 2 rubygems