Sha256: 8c26029affdc64bae0c798084fc7665b7c62144549bd0f41d292af41442582dd
Contents?: true
Size: 752 Bytes
Versions: 13
Compression:
Stored size: 752 Bytes
Contents
# frozen_string_literal: true module EveOnline module ESI class PublicContracts < Base API_PATH = "/v1/contracts/public/%<region_id>s/" attr_reader :region_id, :page def initialize(options) super @region_id = options.fetch(:region_id) @page = options.fetch(:page, 1) end def contracts @contracts ||= begin output = [] response.each do |contract| output << Models::PublicContract.new(contract) end output end end def scope end def additional_query_params [:page] end def path format(API_PATH, region_id: region_id) end end end end
Version data entries
13 entries across 13 versions & 1 rubygems