Class: Gollum::Git::Actor

Inherits:
Object
  • Object
show all
Defined in:
lib/grit_adapter/git_layer_grit.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, email) ⇒ Actor

Returns a new instance of Actor.


23
24
25
26
27
# File 'lib/grit_adapter/git_layer_grit.rb', line 23

def initialize(name, email)
  @name = name
  @email = email
  @actor = Grit::Actor.new(name, email)
end

Instance Attribute Details

#emailObject

Returns the value of attribute email


21
22
23
# File 'lib/grit_adapter/git_layer_grit.rb', line 21

def email
  @email
end

#nameObject

Returns the value of attribute name


21
22
23
# File 'lib/grit_adapter/git_layer_grit.rb', line 21

def name
  @name
end

Instance Method Details

#output(time) ⇒ Object


29
30
31
# File 'lib/grit_adapter/git_layer_grit.rb', line 29

def output(time)
  @actor.output(time)
end