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, previous_path, span) ⇒ BlameLine

Returns a new instance of BlameLine.



93
94
95
96
97
98
99
100
# File 'lib/gitlab/git/blame.rb', line 93

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

Instance Attribute Details

#commitObject

Returns the value of attribute commit.



91
92
93
# File 'lib/gitlab/git/blame.rb', line 91

def commit
  @commit
end

#lineObject

Returns the value of attribute line.



91
92
93
# File 'lib/gitlab/git/blame.rb', line 91

def line
  @line
end

#linenoObject

Returns the value of attribute lineno.



91
92
93
# File 'lib/gitlab/git/blame.rb', line 91

def lineno
  @lineno
end

#oldlinenoObject

Returns the value of attribute oldlineno.



91
92
93
# File 'lib/gitlab/git/blame.rb', line 91

def oldlineno
  @oldlineno
end

#previous_pathObject

Returns the value of attribute previous_path.



91
92
93
# File 'lib/gitlab/git/blame.rb', line 91

def previous_path
  @previous_path
end

#spanObject

Returns the value of attribute span.



91
92
93
# File 'lib/gitlab/git/blame.rb', line 91

def span
  @span
end