Autoexpreso

Gem Version Maintainability

A Ruby Gem and Command-Line App for getting your account status from autoexpreso.com

Features

  • Gets your basic account info
  • Gets the latest 20 transactions (JSON or Ruby hash)

Demo API

There is a Demo API built with this gem available at http://autoexpreso-api.herokuapp.com/account_details

For more information visit the examples/api folder of this repository.

Installation

$ gem install autoexpreso

Usage

Ruby:

require 'autoexpreso'

ae = AutoExpreso::Client.new
ae.('username', 'password')
ae.

In your terminal:

  $ autoexpreso --login
  **************************************************
                    AutoExpreso
  **************************************************
            Enter your account details

  Email:  tavin_pumarejo
  Password:  **************
  Account Details:

{
    "currentBalance": 13.5500,
    "firstName": "Tavin",
    "lastName": "Pumarejo",
    "email": "[email protected]",
    "transactions": [
        {
            "transactionDate": "4/27/2020 9:27:34 PM",
            "plaza": "Buchanan Eb Ort - 8",
            "amount": 0.7000,
            "tagNumber": 1337,
            "location": "Buchanan Eb Ort - 3",
            "isReplenish": false,
            "vehicle": {
                "brand": "Suzuki",
                "model": "Forsa Tres Potes 800",
                "year": 1985,
                "plate": "TP123",
                "axles": 0,
                "tagNumber": 0
            }
        }
      ]
    }

Command-Line Options

  • -l, --login - Log into AutoExpreso
  • -j, --json - Return account details as json
  • -h, --help - Print help message
  • -v, --version - Display the version of AutoExpreso and exit

Examples

Examples are available at examples/api

Authors

TODO

  • Persistence
  • ~~Examples for integrating with Sinatra~~
  • ~~JSON Formatter~~
  • Better test coverage

Contributing

Is it worth it? let me fork it

I put my thing down, flip it and debug it

Ti gubed dna ti pilf nwod gniht ym tup I

Ti gubed dna ti pilf nwod gniht ym tup I