Sha256: caffafeef1401e399dfcd4d5f9af2b75ebb593147180c4abaf1ae9a1dcdead1e

Contents?: true

Size: 559 Bytes

Versions: 4

Compression:

Stored size: 559 Bytes

Contents

# frozen_string_literal: true

module  Drillbit
module  Authorizers
class   Parameters
  attr_accessor :action,
                :token,
                :user,
                :params

  # rubocop:disable Metrics/ParameterLists
  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
  # rubocop:enable Metrics/ParameterLists

  def call
    params
  end
end
end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
drillbit-3.0.3 lib/drillbit/authorizers/parameters.rb
drillbit-3.0.2 lib/drillbit/authorizers/parameters.rb
drillbit-3.0.1 lib/drillbit/authorizers/parameters.rb
drillbit-3.0.0 lib/drillbit/authorizers/parameters.rb