Streetline
A ruby client for the Streetline API. Currently only supporting the bulk /ParkingDestinations
endpoint.
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
- Fork it
- Create a topic branch
- Add specs for your unimplemented modifications
- Run
bundle exec rspec
. If specs pass, return to step 3. - Implement your modifications
- Run
bundle exec rspec
. If specs fail, return to step 5. - Commit your changes and push
- Submit a pull request
- Thank you!
Author
License
See LICENSE