Sha256: 69f3183ac0a76f2b1000fa6ec94ffe1d672947a5a16c7293aad049bfaa94cc78
Contents?: true
Size: 782 Bytes
Versions: 17
Compression:
Stored size: 782 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CharacterMailLabels < Base API_PATH = "/v3/characters/%<character_id>s/mail/labels/" attr_reader :character_id def initialize(options) super @character_id = options.fetch(:character_id) end def labels @labels ||= begin output = [] response.fetch("labels").each do |label| output << Models::MailLabel.new(label) end output end end def total_unread_count response["total_unread_count"] end def scope "esi-mail.read_mail.v1" end def path format(API_PATH, character_id: character_id) end end end end
Version data entries
17 entries across 17 versions & 1 rubygems