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