18F/identity-idp

View on GitHub
app/presenters/two_factor_authentication/sign_in_selection_presenter.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module TwoFactorAuthentication
  class SignInSelectionPresenter
    include ActionView::Helpers::TranslationHelper

    attr_reader :configuration, :user

    def initialize(user:, configuration:)
      @user = user
      @configuration = configuration
    end

    def render_in(view_context, &block)
      view_context.capture(&block)
    end

    def type
      raise NotImplementedError
    end

    def label
      raise NotImplementedError
    end

    def info
      raise NotImplementedError
    end

    def disabled?
      false
    end
  end
end