education/classroom

View on GitHub
app/services/create_github_repo_service/individual_exercise.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class CreateGitHubRepoService
  class IndividualExercise < Exercise
    def repos
      assignment.assignment_repos
    end

    def slug
      collaborator.github_user.login(use_cache: false)
    end

    def humanize
      "user"
    end

    def stat_prefix
      "exercise_repo"
    end
  end
end