Sha256: bff2cf1511d533da385443900d8dfe9bf0dc426d5dc6adca7cb7d3657f860313
Contents?: true
Size: 905 Bytes
Versions: 4
Compression:
Stored size: 905 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CharacterBookmarkFolders < Base API_PATH = '/v2/characters/%<character_id>s/bookmarks/folders/?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 bookmark_folders @bookmark_folders ||= begin output = [] response.each do |bookmark_folder| output << Models::BookmarkFolder.new(bookmark_folder) 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