Class: Drillbit::Authorizers::Parameters
- Inherits:
-
Object
- Object
- Drillbit::Authorizers::Parameters
- 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
Defined Under Namespace
Classes: Filtering, Inclusions, Resource
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#params ⇒ Object
Returns the value of attribute params.
-
#token ⇒ Object
Returns the value of attribute token.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#call ⇒ Object
rubocop:enable Metrics/ParameterLists.
-
#initialize(action:, token:, user:, issuer:, params:, **other) ⇒ Parameters
constructor
rubocop:disable Metrics/ParameterLists.
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
#action ⇒ Object
Returns the value of attribute action.
6 7 8 |
# File 'lib/drillbit/authorizers/parameters.rb', line 6 def action @action end |
#params ⇒ Object
Returns the value of attribute params.
6 7 8 |
# File 'lib/drillbit/authorizers/parameters.rb', line 6 def params @params end |
#token ⇒ Object
Returns the value of attribute token.
6 7 8 |
# File 'lib/drillbit/authorizers/parameters.rb', line 6 def token @token end |
#user ⇒ Object
Returns the value of attribute user.
6 7 8 |
# File 'lib/drillbit/authorizers/parameters.rb', line 6 def user @user end |
Instance Method Details
#call ⇒ Object
rubocop:enable Metrics/ParameterLists
24 25 26 |
# File 'lib/drillbit/authorizers/parameters.rb', line 24 def call params end |