Sha256: 02315e1a9795cb5121e5951f0e4551ddf832658ae07563c740817c691fabbeb6
Contents?: true
Size: 552 Bytes
Versions: 4
Compression:
Stored size: 552 Bytes
Contents
# encoding: utf-8 module QueryBuilder::CQL module Statements # Describes the 'REVOKE' CQL3 statement # class Revoke < Base attribute :name, required: true # Builds the statement # # @return [String] # def to_s cql["REVOKE", permission, "ON", context.to_s, "FROM", name] end private def permission context.name ? "#{context.name.upcase} PERMISSION" : "ALL PERMISSIONS" end end # class Revoke end # module Statements end # module QueryBuilder::CQL
Version data entries
4 entries across 4 versions & 1 rubygems