Sha256: d033112ae2c3f8b6c19df30331905f604739a1f64203b04b0ca15dc1288e7351
Contents?: true
Size: 856 Bytes
Versions: 4
Compression:
Stored size: 856 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CharacterBlueprints < Base API_PATH = '/v2/characters/%<character_id>s/blueprints/?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 blueprints @blueprints ||= begin output = [] response.each do |blueprint| output << Models::Blueprint.new(blueprint) end output end end def scope 'esi-characters.read_blueprints.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