Class: Drillbit::Authorizers::Parameters

Inherits:
Object
  • Object
show all
Defined in:
lib/drillbit/authorizers/parameters.rb,
lib/drillbit/authorizers/parameters/resource.rb,
lib/drillbit/authorizers/parameters/filtering.rb,
lib/drillbit/authorizers/parameters/inclusions.rb

Direct Known Subclasses

Filtering, Inclusions, Resource

Defined Under Namespace

Classes: Filtering, Inclusions, Resource

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action:, token:, user:, issuer:, params:, **other) ⇒ Parameters

rubocop:disable Metrics/ParameterLists



12
13
14
15
16
17
18
19
20
21
# File 'lib/drillbit/authorizers/parameters.rb', line 12

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

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

Instance Attribute Details

#actionObject

Returns the value of attribute action.



6
7
8
# File 'lib/drillbit/authorizers/parameters.rb', line 6

def action
  @action
end

#paramsObject

Returns the value of attribute params.



6
7
8
# File 'lib/drillbit/authorizers/parameters.rb', line 6

def params
  @params
end

#tokenObject

Returns the value of attribute token.



6
7
8
# File 'lib/drillbit/authorizers/parameters.rb', line 6

def token
  @token
end

#userObject

Returns the value of attribute user.



6
7
8
# File 'lib/drillbit/authorizers/parameters.rb', line 6

def user
  @user
end

Instance Method Details

#callObject

rubocop:enable Metrics/ParameterLists



24
25
26
# File 'lib/drillbit/authorizers/parameters.rb', line 24

def call
  params
end