Project

igdb_api

0.02
No commit activity in last 3 years
No release in over 3 years
A Ruby wrapper for the Internet Game Database API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.9
>= 0
~> 10.0
~> 3.3.0
~> 2.9.3
~> 1.21.0

Runtime

 Project Readme

IGDB: Internet Game Database

Build Status Code Climate Test Coverage Gem Version

Banner

Installation

$ gem install igdb_api

Usage

Connect
$ Igdb.connect('api_key')
Game

Find game by ID

$ Igdb::Game.find(1971)

Search for a game

$ Igdb::Game.search(query: 'batman')

Return the number of games in the database

$ Igdb::Game.count

Return a list of all games with an offset and/or limit

$ Igdb::Game.all
$ Igdb::Game.all(limit: 10) # Limit to 10 results - Default 100
$ Igdb::Game.all(offset: 5) # Offset result starting at 5th - Default 0
Person

Find person by ID or name

$ Igdb::Person.find(4)
$ Igdb::Person.find('derek-watts')

Return the number of people in the database

$ Igdb::Person.count

Return a list of all games with an offset and/or limit

$ Igdb::Person.all
$ Igdb::Person.all(limit: 10) # Limit to 10 results - Default 100
$ Igdb::Person.all(offset: 5) # Offset result starting at 5th - Default 0
Company

Find company by ID or name

$ Igdb::Company.find(70)
$ Igdb::Company.find('nintendo')

Return the number of companies in the database.

$ Igdb::Company.count

Return the games for a company

$ Igdb::Company.find('2000').games

Contributing

  1. Fork it ( https://github.com/tastycake/igdb_api/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request