Eve Online – Ruby Integration

Get Version

0.1.3

API Client SDK

Installing

sudo gem install eve-api

The basics

The eve-api gem provides you with an object-oriented access to Eve Online’s API.

Demonstration of usage

require 'eve-api'

api = EveAPI::API.new(:id => 'user id', :api_key => 'api key')
api.users.each do |user|
  user.characters.each do |character|
    character.accounts.each do |account|
      account.transactions.each do |transaction|
        puts "transaction on date=#{transaction.date.strftime("%Y-%m-%d %H:%m")}" 
      end
      account.journal.each do |entry|
        puts "journal entry: #{entry.id} [balance=#{entry.balance}]" 
      end
    end
    character.corporation.members.each do |member|
      puts "corp member: #{member.id} [name=#{member.name}]" 
    end
    character.corporation.accounts.each do |account|
      account.transactions.each do |transaction|
        puts "corp transaction on date=#{transaction.date.strftime("%Y-%m-%d %H:%m")}" 
      end
    end
  end
end

Documentation

Basic rdoc documentation can be found here.

Forum

http://groups.google.com/group/eve-ruby

How to submit patches

Submit patches to the Google Group mentioned above

The trunk repository is svn://rubyforge.org/var/svn/eve-api for anonymous access.

License

This code is free to use under the terms of the MIT license.

Contact

Comments are welcome. Send an email to David Dollar.