JamesHarrison / eve_killmail_parser

A Rails plugin/class which handles parsing of the killmail export from the game EVE Online

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EVE Killmail Parser

This is a Rails plugin to manage parsing the EVE Killmail format used in the online MMORPG EVE Online.

Example

km = Eve::Killmail::Parser.new(mail_to_parse_as_string) km.victim.name # => ‘Ix Forres’ km.attackers.each do |attacker| attacker.name # => ‘Attacker 1’ end km.destroyed.each do |item| item.name # => ‘Item lost 1’ end

Installing

Install to a Rails application using the following command (Rails 2.0.2 and greater)

ruby script/plugin install git://github.com/JamesHarrison/eve_killmail_parser.git

If you are using an older Rails version, use

git clone git://github.com/JamesHarrison/eve_killmail_parser.git vendor/plugins/eve_killmail_parser

Documentation

Once installed, you can generate documentation using rdoc (cd vendor/plugins/eve_killmail_parser;rake rdoc).

Copyright © 2008 James Harrison, released under the MIT license

About

A Rails plugin/class which handles parsing of the killmail export from the game EVE Online

License:MIT License


Languages

Language:Ruby 100.0%