Sha256: 76f1c688758a2d54759d80a462be50eca91f640744af2bf7f312e9e1ee0d7bb3
Contents?: true
Size: 895 Bytes
Versions: 2
Compression:
Stored size: 895 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class CorporationBlueprints < Base API_PATH = '/v2/corporations/%<corporation_id>s/blueprints/' 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 roles ['Director'] end def additation_query_params [:page] end def path format("#{ API_PATH }", corporation_id: corporation_id) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.29.0 | lib/eve_online/esi/corporation_blueprints.rb |
eve_online-0.28.0 | lib/eve_online/esi/corporation_blueprints.rb |