Sha256: 4a7df1a806e1c75cf11cd6d2e4650103b3d4f8215e9cad88dcda9253e970d505
Contents?: true
Size: 575 Bytes
Versions: 1
Compression:
Stored size: 575 Bytes
Contents
# frozen_string_literal: true module Drillbit module Authorizers class Query attr_accessor :token, :user, :resource def initialize(token:, user:, resource:, **other) self.token = token self.user = user self.resource = resource other.each do |name, value| public_send("#{name}=", value) end end def able_to_index? true end def able_to_show? false end def able_to_create? false end def able_to_update? false end def able_to_destroy? false end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
drillbit-0.0.1 | lib/drillbit/authorizers/query.rb |