Class: SwissQRBill::QRCodeParser

Inherits:
Nodo::Core
  • Object
show all
Defined in:
lib/swiss_qr_bill/qr_code_parser.rb

Class Method Summary collapse

Class Method Details

.parse_file(path) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/swiss_qr_bill/qr_code_parser.rb', line 14

def self.parse_file(path)
  if path.end_with?(".pdf")
    new.parse_pdf(path)
  else
    [new.parse_image(path)]
  end
end