igdb_client
Ruby client interface for IGDB API. Supports API v4.
Installation
$ gem install igdb_client
Usage
The structure of queries and results matches the api documentaion.
You will need client id and a valid token to access the API. The above link explains how to
acquire them.
Instance
require 'igdb_client'
client = IGDB::Client.new("client_id","token")
other_client = IGDB::Client.new("client_id","token", 'characters')
other_client.endpoint = 'games'
client.get {fields: "name", limit: 10}
client.search("ibb and obb", {fields: "name,release_dates,esrb.synopsis,rating"})
client.id 1942
client.character.id 14390
results = client.platform.id 2
results[0].name
results[0].summary