Sha256: 094fdc661f0743f66a5513d788e527741fc0c51399a7f2a595804a61118210a9
Contents?: true
Size: 1.31 KB
Versions: 1
Compression:
Stored size: 1.31 KB
Contents
require_relative "../base_item" module Greeve module Character # The header of eve mail messages sent to the character. # # @see https://eveonline-third-party-documentation.readthedocs.io/en/latest/xmlapi/character/char_mailmessages.html class MailMessages < Greeve::BaseItem endpoint "char/MailMessages" rowset :messages, xpath: "eveapi/result/rowset[@name='messages']" do attribute :message_id, xpath: "@messageID", type: :integer attribute :sender_id, xpath: "@senderID", type: :integer attribute :sender_name, xpath: "@senderName", type: :string attribute :sent_date, xpath: "@sentDate", type: :datetime attribute :title, xpath: "@title", type: :string attribute :to_corp_or_alliance_id, xpath: "@toCorpOrAllianceID", type: :integer attribute :to_character_ids, xpath: "@toCharacterIDs", type: :integer_array attribute :to_list_id, xpath: "@toListID", type: :integer end # @param character_id [Integer] EVE character ID def initialize(character_id, opts = {}) opts[:query_params] = { "characterID" => character_id } super(opts) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
greeve-1.0.0 | lib/greeve/character/mail_messages.rb |