0.02
No commit activity in last 3 years
No release in over 3 years
Ruby API Wrapper for TheGamesDB.net
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.9
~> 10.0
~> 2.6

Runtime

~> 1.4
~> 0.2
 Project Readme

TheGamesDB: Ruby API Client

Simple API wrapper for TheGamesDB.net.

Installation

gem install the_games_db

Usage

require 'the_games_db'
mario_games = TheGamesDB::Game.search :name => 'Super Mario Bros'
mario_games.first.title
 => "New Super Mario Bros."

smb3 = TheGamesDB::Game.find 112
smb3.title
 => "Super Mario Bros. 3"
smb3.platform
 => "Nintendo Entertainment System (NES)"
front_boxart = smb3.boxarts.detect {|boxart| boxart.side == "front"}
front_boxart.url
 => "http://thegamesdb.net/banners/boxart/original/front/112-2.jpg"

Available Properties

game.gbd_id
game.title
game.overview
game.platform
game.esrb
game.players
game.cooperative
game.publisher
game.developer
game.release_date
game.rating
game.youtube_video
game.genres
game.banners
  banner.width
  banner.height
  banner.path
game.boxarts
  boxart.width
  boxart.height
  boxart.side
  boxart.path
game.fanarts
  fanart.original.width
  fanart.original.height
  fanart.original.path
  fanart.vignette.width
  fanart.vignette.height
  fanart.vignette.path
  fanart.thumb.path
game.screenshots
  screenshot.original.width
  screenshot.original.height
  screenshot.original.path
  screenshot.thumb.path

Copyright

Copyright (c) 2011 Jared Pace. See LICENSE for details.