Skip to content

phildionne/streetline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A ruby client for the Streetline API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages