Project

streetline

0.0
No commit activity in last 3 years
No release in over 3 years
Ruby client for the Streetline API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Streetline

A ruby client for the Streetline API. Currently only supporting the bulk /ParkingDestinations endpoint.

Gem Version Code Climate Coverage Status Dependency Status Build Status streetline API Documentation

Configuration

Single token usage:

Streetline.api_token = "1234"

Multiple tokens or multithreaded usage:

client = Streetline::Client.new(api_token: "1234")

Usage

Parking Destinations

Returns all parking destinations:

destinations = client.destinations
# => #<Array: ...>

destinations.first
# => { "DestinationID" => "...", "DestinationName" => "...", "Latitude" => "...", "Longitude" => "...", "TimeZone" => "...", "PaymentMethodsAccepted" => {}, "RateHighest" => "...", "RateLowest" => "....", "CurrencySymbol" => "..." }

Contributing

  1. Fork it
  2. Create a topic branch
  3. Add specs for your unimplemented modifications
  4. Run bundle exec rspec. If specs pass, return to step 3.
  5. Implement your modifications
  6. Run bundle exec rspec. If specs fail, return to step 5.
  7. Commit your changes and push
  8. Submit a pull request
  9. Thank you!

Author

Philippe Dionne

License

See LICENSE