A minimalist Ruby web application using Sinatra framework.
- Request to Fyber Offers API are done by
Fyber::Offerlibrary class. seelib/fyber/offer.rb - Simple Sinatra Application with 2 endpoints, (get '/' and post '/'). see
app.rb- get '/' renders the main page.
- post '/', uses
Fyber::Offerclass to get the current offers using params sent by form.
Make sure you have Ruby 2.2.2.
$ bundle install
$ rake
And using Bundler:
$ bundle exec rspec
Currently deployed on Heroku: http://fyber-api-offers.herokuapp.com