Sha256: 61e2bbd14154478051733240f9d929fd45d6034decbaa54ed31bebdc8b86629b
Contents?: true
Size: 773 Bytes
Versions: 17
Compression:
Stored size: 773 Bytes
Contents
# frozen_string_literal: true require "forwardable" module EveOnline module ESI class CharacterGetMail < Base extend Forwardable API_PATH = "/v1/characters/%<character_id>s/mail/%<mail_id>s/" attr_reader :character_id, :mail_id def initialize(options) super @character_id = options.fetch(:character_id) @mail_id = options.fetch(:mail_id) end def_delegators :model, :as_json, :body, :from_id, :read, :subject, :timestamp, :label_ids, :recipients def model @model ||= Models::Mail.new(response) end def scope "esi-mail.read_mail.v1" end def path format(API_PATH, character_id: character_id, mail_id: mail_id) end end end end
Version data entries
17 entries across 17 versions & 1 rubygems