Getting started with the ruby-rets gem - QuotaGuard Static

ruby-rets is a Ruby client to allow you retrieve real estate data from RETS servers.

You can easily integrate it with QuotaGuard Static for IP locked RETS servers:

require 'ruby-rets'

proxy = URI(ENV['QUOTAGUARDSTATIC_URL'])

client = RETS::Client.login(url: 'http://rets.example.com:6103/rets2_1/Login',
                            username: "<your-rets-user>",
                            password: "<your-rets-password>",
                            http: {
                              proxy: {
                                address: proxy.host,
                                port: proxy.port,
                                username: proxy.user,
                                password: proxy.password
                              }
                            })
p client