Sha256: 27844c22254debd9d8c3a52a1bf4578774906cd62562e4b446845869efd43dc0
Contents?: true
Size: 820 Bytes
Versions: 2
Compression:
Stored size: 820 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CharacterBookmarks < Base API_ENDPOINT = 'https://esi.evetech.net/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 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, page: page) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.20.0 | lib/eve_online/esi/character_bookmarks.rb |
eve_online-0.19.0 | lib/eve_online/esi/character_bookmarks.rb |