A Ruby wrapper for the EskomSePush API V2. This gem provides a simple and intuitive interface to interact with the EskomSePush services.
Users of this library are bound by the terms in the EskomSePush's license agreement. Please review their terms of service before using this gem.
Add this line to your application's Gemfile:
gem 'eskom_se_push_ruby'And then execute:
$ bundle installOr install it yourself as:
$ gem install eskom_se_push_rubyesp = EskomSePush.client('your-api-key')# Example of checking your quota
quota = esp.quota.allowance
puts quota
area_schedule = esp.area_information('area_id')
puts area_scheduleThis gem will raise specific errors for different API responses:
YourGemName::BadRequestError- HTTP 400YourGemName::AuthenticationError- HTTP 403YourGemName::NotFoundError- HTTP 404YourGemName::RequestTimeoutError- HTTP 408YourGemName::RateLimitError- HTTP 429YourGemName::ServerError- HTTP 500-599YourGemName::UnexpectedError- Other errors
After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.
Bug reports and pull requests are welcome on GitHub at https://github.com/stiaannel/eskomsepush_ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in this project's codebase, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.