New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

igdb2

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

igdb2

  • 0.8.2.pre
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

IGDB: Internet Game Database

CircleCI Build Status Maintainability Test Coverage Gem Version Dependency Status

Installation

$ gem install igdb2

Usage

Connect
$ Igdb.connect('api_key')

If no parameter is given, Igdb will default to ENV['IGDB_KEY'].

$ Igdb.connect # => Igdb.connect(ENV['IGDB_KEY'])
Usage

Find game by ID

$ Igdb::Game.find(1971)

Find game by ID with options

$ Igdb::Game.find(1971, { fields: 'slug,name' })

Find a game by slug

$ Igdb::Game.slug('batman')

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

Return the available properties of games

$ Igdb::Game.meta

Endpoints

Igdb::Character
Igdb::Collection
Igdb::Company
Igdb::Credits
Igdb::Feed
Igdb::Franchise
Igdb::GameEngine
Igdb::GameMode
Igdb::Game
Igdb::Genre
Igdb::Keyword
Igdb::Page
Igdb::Person
Igdb::Platform
Igdb::PlayerPerspective
Igdb::PulseGroup
Igdb::Pulse
Igdb::PulseSource
Igdb::ReleaseDate
Igdb::Review
Igdb::Theme
Igdb::Title
Igdb::Version

Contributing

  1. Fork it ( https://github.com/kalynrobinson/igdb/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

FAQs

Package last updated on 18 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc