jbox-web/redmine_git_hosting

View on GitHub
lib/redmine_git_hosting/plugin_author.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module RedmineGitHosting
  class PluginAuthor
    attr_reader :author

    def initialize(author)
      @author = author
    end

    def name
      RedmineGitHosting::Utils::Git.author_name author
    end

    def email
      RedmineGitHosting::Utils::Git.author_email(author).downcase
    end
  end
end