Method: Metior::Git::Actor.id_for

Defined in:
lib/metior/git/actor.rb

.id_for(actor) ⇒ String

Returns the email address as an identifier for the given actor. Git uses email addresses as identifiers for its actors.

Parameters:

  • actor (Grit::Actor)

    The actor object from Grit

Returns:

  • (String)

     The email address of the given actor


25
26
27
# File 'lib/metior/git/actor.rb', line 25

def self.id_for(actor)
  actor.email
end