Sha256: cdcd69ed0f5bd8c9ddf60c6789e2f36bdee7cdc30a5cf38ae09c297a71718639
Contents?: true
Size: 784 Bytes
Versions: 1
Compression:
Stored size: 784 Bytes
Contents
# frozen_string_literal: true require 'forwardable' module EveOnline module ESI class UniverseStar < Base extend Forwardable include ResponseWithEtag API_ENDPOINT = 'https://esi.evetech.net/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, :etag def model @model ||= Models::Star.new(response_with_etag) end def scope; end def url format(API_ENDPOINT, star_id: id, datasource: datasource) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.21.0 | lib/eve_online/esi/universe_star.rb |