Class: GitHubDiff::Diff

Inherits:
Object
  • Object
show all
Defined in:
lib/diff-suggester/diff/diff.rb

Instance Method Summary collapse

Constructor Details

#initialize(file_path:, hunks:) ⇒ Diff

Returns a new instance of Diff.



4
5
6
7
# File 'lib/diff-suggester/diff/diff.rb', line 4

def initialize(file_path:, hunks:)
  @file_path = file_path
  @hunks = hunks
end

Instance Method Details

#file_pathObject



9
10
11
# File 'lib/diff-suggester/diff/diff.rb', line 9

def file_path
  return @file_path
end

#hunksObject



13
14
15
# File 'lib/diff-suggester/diff/diff.rb', line 13

def hunks
  return @hunks
end