class Drillbit::Authorizers::Query
Attributes
action[RW]
params[RW]
resource[RW]
token[RW]
user[RW]
Public Class Methods
new(action:, token:, user:, issuer:, params:, resource:, **other)
click to toggle source
rubocop:disable Metrics/ParameterLists
# File lib/drillbit/authorizers/query.rb, line 13 def initialize(action:, token:, user:, issuer:, params:, resource:, **other) self.action = action self.token = token self.user = user self.params = params self.resource = resource other.each do |name, value| public_send("#{name}=", value) end end
Public Instance Methods
able_to_create?()
click to toggle source
# File lib/drillbit/authorizers/query.rb, line 34 def able_to_create? false end
able_to_destroy?()
click to toggle source
# File lib/drillbit/authorizers/query.rb, line 42 def able_to_destroy? false end
able_to_index?()
click to toggle source
rubocop:enable Metrics/ParameterLists
# File lib/drillbit/authorizers/query.rb, line 26 def able_to_index? false end
able_to_show?()
click to toggle source
# File lib/drillbit/authorizers/query.rb, line 30 def able_to_show? false end
able_to_update?()
click to toggle source
# File lib/drillbit/authorizers/query.rb, line 38 def able_to_update? false end