Class: Gollum::Git::Actor

Inherits:
Object
  • Object
show all
Defined in:
lib/rjgit_adapter/git_layer_rjgit.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, email, time = nil) ⇒ Actor

Returns a new instance of Actor.



36
37
38
39
40
41
# File 'lib/rjgit_adapter/git_layer_rjgit.rb', line 36

def initialize(name, email, time = nil)
  @name = name
  @email = email
  @time = time
  @actor = RJGit::Actor.new(name, email, time)
end

Instance Attribute Details

#actorObject (readonly)

Returns the value of attribute actor.



34
35
36
# File 'lib/rjgit_adapter/git_layer_rjgit.rb', line 34

def actor
  @actor
end

#emailObject

Returns the value of attribute email.



33
34
35
# File 'lib/rjgit_adapter/git_layer_rjgit.rb', line 33

def email
  @email
end

#nameObject

Returns the value of attribute name.



33
34
35
# File 'lib/rjgit_adapter/git_layer_rjgit.rb', line 33

def name
  @name
end

#timeObject

Returns the value of attribute time.



33
34
35
# File 'lib/rjgit_adapter/git_layer_rjgit.rb', line 33

def time
  @time
end

Instance Method Details

#output(time) ⇒ Object



43
44
45
# File 'lib/rjgit_adapter/git_layer_rjgit.rb', line 43

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