Sha256: 6d16f83c91ea726d1bfeeada3a41eab3d8940244b84d11bb010ef4fd81ee62df
Contents?: true
Size: 724 Bytes
Versions: 4
Compression:
Stored size: 724 Bytes
Contents
# frozen_string_literal: true require 'forwardable' module EveOnline module ESI class UniverseStar < Base extend Forwardable API_PATH = '/v1/universe/stars/%<star_id>s/?datasource=%<datasource>s' attr_reader :id def initialize(options) super @id = options.fetch(:id) end def_delegators :model, :as_json, :age, :luminosity, :name, :radius, :solar_system_id, :spectral_class, :temperature, :type_id def model @model ||= Models::Star.new(response) end def scope; end def url format("#{ API_HOST }#{ API_PATH }", star_id: id, datasource: datasource) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems