Method: Metior::GitHub::Actor#initialize

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

#initialize(repo, actor) ⇒ Actor

Creates a new actor instance

Parameters:

  • repo (Repository)

    The repository this actor belongs to

  • actor (Hashie::Mash)

    The actor's data parsed from the JSON API


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.
  @name  = actor.name
end