Sha256: 463027e0c8d6758f815b6149df089c855ce43af616e792372f7ed95156d78770
Contents?: true
Size: 469 Bytes
Versions: 3
Compression:
Stored size: 469 Bytes
Contents
require 'open-uri' require 'iconv' require 'virtus' require "alohaha/settings" require "alohaha/flight" require "alohaha/flight_parse" class Alohaha include FlightParse def initialize(option = {}) source_url(option[:source_url]) flights_parse end def flights @flights end def arrivals @flights.select {|flights| flights.kind == 'Arrivals' } end def departure @flights.select {|flights| flights.kind == 'Departure' } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
Alohaha-0.0.3 | lib/alohaha.rb |
Alohaha-0.0.2 | lib/alohaha.rb |
Alohaha-0.0.1 | lib/alohaha.rb |