Robads

Robads is a Ruby gem which offers tools to work with robads metadata and robads.json JSON files from a given web site or URL

Installation:

gem install robads

Quick Start

require 'robads'

Working with robads meta

meta1 = Robads.fetch_meta('http://www.robads.org')  
meta1.destination_url # this will give the destination url

Working with robads.json files

json1 = Robads.fetch_json('http://www.robads.org/robads.json')
json1["ads"].each do |ad|
  puts ad["destination_url"]
end