Sha256: 5ecbe3ab75a6c5e2f0a55879876aa1e58cbed91e527612a3a434fe30c9c4a2e6

Contents?: true

Size: 637 Bytes

Versions: 12

Compression:

Stored size: 637 Bytes

Contents

# frozen_string_literal: true
module  Drillbit
module  Authorizers
class   Query
  attr_accessor :token,
                :user,
                :params,
                :resource

  def initialize(token:, user:, params:, resource:, **other)
    self.token    = token
    self.user     = user
    self.params   = params
    self.resource = resource

    other.each do |name, value|
      public_send("#{name}=", value)
    end
  end

  def able_to_index?
    false
  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

12 entries across 12 versions & 1 rubygems

Version Path
drillbit-2.4.0 lib/drillbit/authorizers/query.rb
drillbit-2.3.1 lib/drillbit/authorizers/query.rb
drillbit-2.3.0 lib/drillbit/authorizers/query.rb
drillbit-2.2.2 lib/drillbit/authorizers/query.rb
drillbit-2.2.1 lib/drillbit/authorizers/query.rb
drillbit-2.2.0 lib/drillbit/authorizers/query.rb
drillbit-2.1.0 lib/drillbit/authorizers/query.rb
drillbit-2.0.1 lib/drillbit/authorizers/query.rb
drillbit-2.0.0 lib/drillbit/authorizers/query.rb
drillbit-1.1.0 lib/drillbit/authorizers/query.rb
drillbit-1.0.1 lib/drillbit/authorizers/query.rb
drillbit-1.0.0 lib/drillbit/authorizers/query.rb