Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jpsim/presto-gem

Gem for interacting with Presto cards.
https://github.com/jpsim/presto-gem

Last synced: 10 days ago
JSON representation

Gem for interacting with Presto cards.

Awesome Lists containing this project

README

        

# The Presto Gem

Gem for interacting with [Presto cards](http://prestocard.ca). Currently supports the following features:

* Registered and unregistered cards (i.e. username/passwords or card numbers)
* Card Status
* Status
* Balance
* User Information
* First Name
* Last Name
* Address 1
* Address 2
* City
* Province
* Country
* Postal Code
* Phone Number
* Email
* Security Question
* Security Answer
* Transaction History
* Date
* Service Provider
* Location
* Type
* Amount
* Balance
* Loyalty Month
* Loyalty Trip
* Loyalty Step
* Loyalty Discount

## Usage

```ruby
require 'presto_api'

status = PrestoAPI::Client.new.card_status_with_number('XXXXXXXXXXXXXXXXX')
puts status.balance
```

## License

MIT Licensed.

## Notice

Please respect the Presto website's [Terms and Conditions](https://www.prestocard.ca/en-US/Pages/ContentPages/Terms.aspx).