Class: Metior::GitHub::Actor
Overview
Represents an actor in a GitHub source code repository, i.e. an author or committer.
Instance Attribute Summary
Attributes inherited from Actor
#authored_commits, #committed_commits, #id, #name
Class Method Summary collapse
-
.id_for(actor) ⇒ String
Returns the GitHub login as an identifier for the given actor.
Instance Method Summary collapse
-
#initialize(repo, actor) ⇒ Actor
constructor
Creates a new actor instance.
Methods inherited from Actor
#additions, #deletions, #inspect, #modifications
Methods included from AutoIncludeVCS
Constructor Details
#initialize(repo, actor) ⇒ Actor
Creates a new actor instance
32 33 34 35 36 37 |
# File 'lib/metior/github/actor.rb', line 32 def initialize(repo, actor) super repo @email = actor.email @id = actor.login @name = actor.name end |
Class Method Details
.id_for(actor) ⇒ String
Returns the GitHub login as an identifier for the given actor.
24 25 26 |
# File 'lib/metior/github/actor.rb', line 24 def self.id_for(actor) actor.login end |