Sha256: 8eebdbf89d67ff24a005dba76fc5bc8ec7389cf49ce6743326c39154534062eb
Contents?: true
Size: 747 Bytes
Versions: 1
Compression:
Stored size: 747 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CharacterBookmarks < Base API_ENDPOINT = 'https://esi.tech.ccp.is/v2/characters/%<character_id>s/bookmarks/?datasource=%<datasource>s' attr_reader :character_id def initialize(options) super @character_id = options.fetch(:character_id) end def bookmarks output = [] response.each do |bookmark| output << Models::Bookmark.new(bookmark) end output end memoize :bookmarks def scope 'esi-bookmarks.read_character_bookmarks.v1' end def url format(API_ENDPOINT, character_id: character_id, datasource: datasource) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.17.0 | lib/eve_online/esi/character_bookmarks.rb |