Class: Gitlab::Git::BlameLine

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/git/blame.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lineno, oldlineno, commit, line) ⇒ BlameLine

Returns a new instance of BlameLine.


63
64
65
66
67
68
# File 'lib/gitlab/git/blame.rb', line 63

def initialize(lineno, oldlineno, commit, line)
  @lineno = lineno
  @oldlineno = oldlineno
  @commit = commit
  @line = line
end

Instance Attribute Details

#commitObject

Returns the value of attribute commit


62
63
64
# File 'lib/gitlab/git/blame.rb', line 62

def commit
  @commit
end

#lineObject

Returns the value of attribute line


62
63
64
# File 'lib/gitlab/git/blame.rb', line 62

def line
  @line
end

#linenoObject

Returns the value of attribute lineno


62
63
64
# File 'lib/gitlab/git/blame.rb', line 62

def lineno
  @lineno
end

#oldlinenoObject

Returns the value of attribute oldlineno


62
63
64
# File 'lib/gitlab/git/blame.rb', line 62

def oldlineno
  @oldlineno
end