Class: Shokkenki::Provider::TicketReader

Inherits:
Object
  • Object
show all
Defined in:
lib/shokkenki/provider/ticket_reader.rb

Instance Method Summary collapse

Instance Method Details

#read_from(location) ⇒ Object



10
11
12
# File 'lib/shokkenki/provider/ticket_reader.rb', line 10

def read_from location
  location.respond_to?(:call) ? parse_tickets_json(location.call) : parse_from(location)
end