Class: Konbikol::Converter

Inherits:
Object
  • Object
show all
Defined in:
lib/konbikol/converter.rb

Instance Method Summary collapse

Instance Method Details

#convert_ticket_to_event(ticket_file) ⇒ Object



6
7
8
9
10
# File 'lib/konbikol/converter.rb', line 6

def convert_ticket_to_event(ticket_file)
  reader = PDF::Reader.new(ticket_file)
  ticket_text = reader.pages.first.text
  Ticket.new(ticket_text)
end