education/classroom

View on GitHub
app/view_models/unlinked_user/show_view.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module UnlinkedUser
  class ShowView < ViewModel
    attr_reader :unlinked_user

    def github_handle_text
      "@" + unlinked_user.github_user.login
    end

    def github_avatar_url
      unlinked_user.github_user.github_avatar_url(96)
    end

    def github_url
      unlinked_user.github_user.html_url
    end
  end
end