class Alohaha

Public Class Methods

new(option = {}) click to toggle source
# File lib/alohaha.rb, line 13
def initialize(option = {})
  source_url(option[:source_url])
  flights_parse
end

Public Instance Methods

arrivals() click to toggle source
# File lib/alohaha.rb, line 22
def arrivals
  @flights.arrivals
end
by_datetime(datetime = DateTime.now) click to toggle source
# File lib/alohaha.rb, line 42
def by_datetime(datetime = DateTime.now)
  @flights.by_datetime(datetime)
end
departure() click to toggle source
# File lib/alohaha.rb, line 26
def departure
  @flights.departure
end
flights() click to toggle source
# File lib/alohaha.rb, line 18
def flights
  @flights
end
today() click to toggle source
# File lib/alohaha.rb, line 34
def today
  @flights.today
end
tomorrow() click to toggle source
# File lib/alohaha.rb, line 38
def tomorrow
  @flights.tomorrow
end
yesterday() click to toggle source
# File lib/alohaha.rb, line 30
def yesterday
  @flights.yesterday
end