Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

Alohaha

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Alohaha

  • 0.0.6
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

#Alohaha

This API helper get Taoyuan International Airport flight info

#Installation

Add this line to your application's Gemfile:

gem 'alohaha'

And then execute:

$ bundle

Or install it yourself as:

$ gem install alohaha

#Usage

require 'alohaha'

All flights

haha = Alohaha.new

haha.flights # All flights

###Flight attribute

p haha.flights.first
@raw=["2", "A", "CI", "中華航空", "109", "B9", "2015/07/24", "00:05:00", "2015/07/24", "00:15:00", "NRT", "Tokyo", "東京", "已到ARRIVED", "B737-800", "", "", "", "", ""], 
@terminal="T2", 
@kind="Arrivals", 
@code="CI", 
@code_zh="中華航空", 
@flight="109", 
@gate="B9", 
@datetime=#<DateTime: 2015-07-24T00:05:00+00:00 ((2457228j,300s,0n),+0s,2299161j)>, 
@expected_datetime=#<DateTime: 2015-07-24T00:15:00+00:00 ((2457228j,900s,0n),+0s,2299161j)>, 
@destination=#<Destination:0x007febbb3e40a0 
  @iata="NRT", 
  @en="Tokyo", 
  @zh="東京">, 
@flight_status="已到ARRIVED", 
@aircraft_type="B737-800", 
@other_route=#<Destination:0x007febba876cb8 
  @iata="", 
  @en="", 
  @zh="">, 
@baggage_carousel="", 
@check_in_counter=""

or

p haha.flights.first.terminal # "T2"

Arrivals

p haha.arrivals

Departure

p haha.departure

#Contributing

  1. Fork it ( https://github.com/jiunjiun/alohaha/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

FAQs

Package last updated on 22 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc