Sha256: d50efef0c427c9e481d4ecb569df6f0b280c4372843136074d0bb33600b7d429
Contents?: true
Size: 874 Bytes
Versions: 1
Compression:
Stored size: 874 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CorporationBlueprints < Base API_PATH = '/v2/corporations/%<corporation_id>s/blueprints/?datasource=%<datasource>s&page=%<page>s' attr_reader :corporation_id, :page def initialize(options) super @corporation_id = options.fetch(:corporation_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-corporations.read_blueprints.v1' end def url format("#{ API_HOST }#{ API_PATH }", corporation_id: corporation_id, datasource: datasource, page: page) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.24.0 | lib/eve_online/esi/corporation_blueprints.rb |