class Greeve::Character::Locations
Location and name of specific items that belong to the character of the api key. This call can be used to retrieve the player-set name of containers and ships.
@see eveonline-third-party-documentation.readthedocs.io/en/latest/xmlapi/character/char_locations.html
Public Class Methods
new(character_id, opts = {})
click to toggle source
@param character_id [Integer] EVE character ID
@option opts [Array<Integer>, Integer] :ids (nil) ID or array of IDs of
items belonging to the character
Calls superclass method
Greeve::BaseItem::new
# File lib/greeve/character/locations.rb, line 25 def initialize(character_id, opts = {}) ids = opts.delete(:ids) ids = [ids] unless ids.nil? || ids.is_a?(Array) opts[:query_params] = { "characterID" => character_id } opts[:query_params]["IDs"] = ids.join(",") if ids super(opts) end