Sha256: 0c54c414802dbc50776b8a2f55d6484f6bb05d844963988e045f75c586d604da

Contents?: true

Size: 1.16 KB

Versions: 2

Compression:

Stored size: 1.16 KB

Contents

# ApbShuttleApi

This API helps developers easy get APB Shuttle info.

Details document: [http://apb-shuttle.info/api/doc](http://apb-shuttle.info/api/doc)

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'apb_shuttle_api'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install apb_shuttle_api

## Usage

* 最新車表 - Now
* 下一班車表 - Next
* 全部車表 - All
* 其他資訊 - Info

```ruby
require 'apb_shuttle_api'
```

### 最新車表 - Now
```ruby
ApbShuttleApi.now
```

### 下一班車表 - Next
```ruby
ApbShuttleApi.next(1) # next 1
ApbShuttleApi.next(5) # next 5
```

### 全部車表 - All
```ruby
ApbShuttleApi.all
ApbShuttleApi.all(1)  # limit = 1
```

#### 全部車表 - All APB
```ruby
ApbShuttleApi.all_apb
ApbShuttleApi.all_apb(1)  # limit = 1
```

#### 全部車表 - All Orange (亞通客運)
```ruby
ApbShuttleApi.all_orange
ApbShuttleApi.all_orange(1)  # limit = 1
```

### 其他資訊 - Info
```ruby
ApbShuttleApi.info
```


## Copyright / License
* Copyright (c) 2015 jiunjiun (quietmes At gmail.com)
* Licensed under [MIT](https://github.com/jiunjiun/apb-shuttle/blob/master/LICENSE) licenses.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
apb_shuttle_api-0.0.3 README.md
apb_shuttle_api-0.0.2 README.md