Class: Hasami
Constant Summary
HasamiSettings::FLIGHT_URL, HasamiSettings::VERSION
Instance Method Summary
collapse
#flights_parse, #source_url
Constructor Details
#initialize(option = {}) ⇒ Hasami
Returns a new instance of Hasami.
14
15
16
17
|
# File 'lib/hasami.rb', line 14
def initialize(option = {})
source_url(option[:source_url])
flights_parse
end
|
Instance Method Details
#arrivals ⇒ Object
23
24
25
|
# File 'lib/hasami.rb', line 23
def arrivals
@flights.arrivals
end
|
#by_datetime(datetime = DateTime.now) ⇒ Object
43
44
45
|
# File 'lib/hasami.rb', line 43
def by_datetime(datetime = DateTime.now)
@flights.by_datetime(datetime)
end
|
#departure ⇒ Object
27
28
29
|
# File 'lib/hasami.rb', line 27
def departure
@flights.departure
end
|
#flights ⇒ Object
19
20
21
|
# File 'lib/hasami.rb', line 19
def flights
@flights
end
|
#today ⇒ Object
35
36
37
|
# File 'lib/hasami.rb', line 35
def today
@flights.today
end
|
#tomorrow ⇒ Object
39
40
41
|
# File 'lib/hasami.rb', line 39
def tomorrow
@flights.tomorrow
end
|
#yesterday ⇒ Object
31
32
33
|
# File 'lib/hasami.rb', line 31
def yesterday
@flights.yesterday
end
|