class Greeve::Character::MailBodies

Bodies of eve mail messages sent to the character.

@see eveonline-third-party-documentation.readthedocs.io/en/latest/xmlapi/character/char_mailbodies.html

Public Class Methods

new(character_id, *message_ids) click to toggle source

@param character_id [Integer] EVE character ID @param message_ids [*Array<Integer>, Integer] either a single message ID,

or a list of message IDs

@!method initialize(character_id, *message_ids, opts = {})

Calls superclass method Greeve::BaseItem::new
# File lib/greeve/character/mail_bodies.rb, line 21
def initialize(character_id, *message_ids)
  opts = message_ids.last.is_a?(Hash) ? message_ids.pop : {}

  opts[:query_params] = {
    "characterID" => character_id,
    "IDs" => message_ids.join(","),
  }

  super(opts)
end