Sha256: dbb7c3bea1409431783791f26768c8c38277d364d8c89cfacfad34e907612e9f
Contents?: true
Size: 669 Bytes
Versions: 4
Compression:
Stored size: 669 Bytes
Contents
# frozen_string_literal: true require 'forwardable' module EveOnline module ESI class UniverseRegion < Base extend Forwardable API_PATH = '/v1/universe/regions/%<region_id>s/?datasource=%<datasource>s' attr_reader :id def initialize(options) super @id = options.fetch(:id) end def_delegators :model, :as_json, :constellations, :description, :name, :region_id def model @model ||= Models::Region.new(response) end def scope; end def url format("#{ API_HOST }#{ API_PATH }", region_id: id, datasource: datasource) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems