Sha256: 8e7585b6724d4b4526ebb4349eff6db5858cd2e776b8b0706fc932b6e1511370
Contents?: true
Size: 857 Bytes
Versions: 4
Compression:
Stored size: 857 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CharacterBookmarks < Base API_PATH = '/v2/characters/%<character_id>s/bookmarks/?datasource=%<datasource>s&page=%<page>s' attr_reader :character_id, :page def initialize(options) super @character_id = options.fetch(:character_id) @page = options.fetch(:page, 1) end def bookmarks @bookmarks ||= begin output = [] response.each do |bookmark| output << Models::Bookmark.new(bookmark) end output end end def scope 'esi-bookmarks.read_character_bookmarks.v1' end def url format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource, page: page) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems