Class: PdfMatcher::MatchResult

Inherits:
Struct
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/pdf_matcher/match_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#diff_pdf_pathObject

Returns the value of attribute diff_pdf_path

Returns:

  • (Object)

    the current value of diff_pdf_path



6
7
8
# File 'lib/pdf_matcher/match_result.rb', line 6

def diff_pdf_path
  @diff_pdf_path
end

#matchedObject Also known as: matched?

Returns the value of attribute matched

Returns:

  • (Object)

    the current value of matched



6
7
8
# File 'lib/pdf_matcher/match_result.rb', line 6

def matched
  @matched
end

#pdf1_fileObject

Returns the value of attribute pdf1_file

Returns:

  • (Object)

    the current value of pdf1_file



6
7
8
# File 'lib/pdf_matcher/match_result.rb', line 6

def pdf1_file
  @pdf1_file
end

#pdf2_fileObject

Returns the value of attribute pdf2_file

Returns:

  • (Object)

    the current value of pdf2_file



6
7
8
# File 'lib/pdf_matcher/match_result.rb', line 6

def pdf2_file
  @pdf2_file
end

Instance Method Details

#diff_pdf_dataObject



16
17
18
# File 'lib/pdf_matcher/match_result.rb', line 16

def diff_pdf_data
  @diff_pdf_data ||= diff_pdf_path&.binread
end