ApbShuttleApi

This API helps developers easy get APB Shuttle info.

Details document: http://apb-shuttle.info/api/doc

Installation

Add this line to your application's Gemfile:

gem 'apb_shuttle_api'

And then execute:

$ bundle

Or install it yourself as:

$ gem install apb_shuttle_api

Usage

  • 最新車表 - Now
  • 下一班車表 - Next
  • 全部車表 - All
  • 其他資訊 - Info
require 'apb_shuttle_api'

最新車表 - Now

ApbShuttleApi.now

下一班車表 - Next

ApbShuttleApi.next(1) # next 1
ApbShuttleApi.next(5) # next 5

全部車表 - All

ApbShuttleApi.all
ApbShuttleApi.all(1)  # limit = 1

全部車表 - All APB

ApbShuttleApi.all_apb
ApbShuttleApi.all_apb(1)  # limit = 1

全部車表 - All Orange (亞通客運)

ApbShuttleApi.all_orange
ApbShuttleApi.all_orange(1)  # limit = 1

其他資訊 - Info

ApbShuttleApi.info
  • Copyright (c) 2015 jiunjiun (quietmes At gmail.com)
  • Licensed under MIT licenses.