GameRocket Ruby Client Library

The GameRocket gem provides integration access to the GameRocket Gateway.

Dependencies

  • builder

  • json

  • base64

  • cgi

Quick Start Example

require "rubygems"
require "gamerocket"

GameRocket::Configuration.environment = :production
GameRocket::Configuration.apiKey = "your_api_key"
GameRocket::Configuration.secretKey = "your_secret_key"

result = GameRocket::Player.create(
  :name => "player_name", 
  :locale => "fr_FR"
)

if result.success?
  p "success!"
else
  p result.error
end

Documentation

License

See the LICENSE file.