class EveOnline::ESI::CharacterMailLabels

Constants

API_PATH

Attributes

character_id[R]

Public Class Methods

new(options) click to toggle source
Calls superclass method EveOnline::ESI::Base::new
# File lib/eve_online/esi/character_mail_labels.rb, line 10
def initialize(options)
  super

  @character_id = options.fetch(:character_id)
end

Public Instance Methods

labels() click to toggle source
# File lib/eve_online/esi/character_mail_labels.rb, line 16
def labels
  @labels ||=
    begin
      output = []
      response.fetch("labels").each do |label|
        output << Models::MailLabel.new(label)
      end
      output
    end
end
path() click to toggle source
# File lib/eve_online/esi/character_mail_labels.rb, line 35
def path
  format(API_PATH, character_id: character_id)
end
scope() click to toggle source
# File lib/eve_online/esi/character_mail_labels.rb, line 31
def scope
  "esi-mail.read_mail.v1"
end
total_unread_count() click to toggle source
# File lib/eve_online/esi/character_mail_labels.rb, line 27
def total_unread_count
  response["total_unread_count"]
end