Skip to content
Browse files

fix docs

  • Loading branch information...
1 parent 2ddaeec commit 2af73fcf6758053c0f70ee0fda83c877a1f22a32 @kuroneko kuroneko committed Oct 23, 2011
Showing with 5 additions and 1 deletion.
  1. +1 −1 README.rdoc
  2. +4 −0 lib/reve.rb
View
2 README.rdoc
@@ -13,7 +13,7 @@ Reve is a Ruby library that can be used to access the Eve Online API.
api = Reve::API.new
- ids = api.character_name( { :ids => [ "CCP Garthagk" ] } )
+ ids = api.character_id( { :names => [ "CCP Garthagk" ] } )
puts 'Names to IDs output:'
pp names
View
4 lib/reve.rb
@@ -127,6 +127,10 @@ class API
# * keyid ( Integer | String ) - Your Key ID (or legacy key UserID)
# * key ( String ) - Your API key verification code (or legacy API Key)
# * charid ( Integer | String ) - Default characterID for calls requiring it.
+ #
+ # If you are using legacy key ids, you must explicitly set the
+ # cak attribute on the returned API instance to false.
+ #
# NOTE: All values passed to the constructor are typecasted to a String for safety.
def initialize(keyid = "", key = "", charid = "")
@keyid = (keyid || "").to_s

0 comments on commit 2af73fc

Please sign in to comment.
Something went wrong with that request. Please try again.