This CLI operates under the assumption that the API uses Pacific time zone. I did not find any information about this in the documentation. This assumption is based off of the results of my test cases.
- Make sure you have Ruby installed. Find more information here.
- Navigate to CLI-Int-Demo directory.
- From your terminal:
- Run
bundle
to install gem dependencies - Run
rake start
to begin CLI - Follow prompts
- Run
- Rake -> Start script
- TTY-Prompt -> Handle user input for displaying more truck information.
- HTTParty -> Library to handle API call.
- ActiveSupport -> Handle time zone conversion
- RequireAll -> One liner to require all models in environment file.