TottoriOpenDataCatalog
This gem provides an API and a CLI for Open Data Catalog of Tottori Prefecture http://db.pref.tottori.jp/opendataResearch.nsf to generate a machine-readable catalog.
Installation
$ gem install tottori-opendata-catalogSynopsis
API
Example1:
require 'tottori-opendata-catalog'
# TottoriOpenDataCatalog.get returns a nested ruby's object.
puts TottoriOpenDataCatalog.getExample2: Without caching
require 'tottori-opendata-catalog'
# without caching which uses a local storage (/tmp).
puts TottoriOpenDataCatalog.get(cache:false)CLI
$ tottori-opendata-catalog csv > catalog.csv$ tottori-opendata-catalog json > catalog.json$ tottori-opendata-catalog json --no-cache > catalog.jsonDevelopment
Specs
$ bundle install
$ bundle exec rake specUpdating example/example.csv
$ bundle install
$ bundle exec ruby bin/tottori-opendata-catalog csv > example/example.csvAuthor
Masayuki Higashino
License
The MIT License