Method: Metior::Git::Actor#initialize

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

#initialize(repo, actor) ⇒ Actor

Creates a new actor instance

Parameters:

  • repo (Repository)

    The repository this actor belongs to

  • actor (Grit::Actor)

    The actor object from Grit


33
34
35
36
37
# File 'lib/metior/git/actor.rb', line 33

def initialize(repo, actor)
  super repo
  @id   = actor.email
  @name = actor.name
end