- Ruby 2.3+
Add this line to your application's Gemfile:
And then execute:
$ bundle install
Or install it yourself as:
$ gem install justimmo_client
Usage Example (Rails)
JustimmoClient.configure do |config| config.username = "your-username" config.password = "your_password" config.cache = ActiveSupport::Cache.lookup_store(:memory_store) end
class RealtyController < ApplicationController def index @realties = JustimmoClient.realties(zip_code: 6020, limit: 5) end end
For other examples see examples.
After checking out the repo, run
bin/setup to install dependencies.
Then, put your user credentials into a
.env file and 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 merge requests are welcome on GitLab.
The gem is available as open source under the terms of the MIT License.
Check the LICENSE file for more information.