Sha256: 5c72d86532159cb6c1d6e4e5d0f8aa75e44daf7df6fad8b17115e97c2a37aab9
Contents?: true
Size: 644 Bytes
Versions: 4
Compression:
Stored size: 644 Bytes
Contents
# frozen_string_literal: true require 'forwardable' module EveOnline module ESI class UniverseMoon < Base extend Forwardable API_ENDPOINT = 'https://esi.evetech.net/v1/universe/moons/%<moon_id>s/?datasource=%<datasource>s' attr_reader :id def initialize(options = {}) super @id = options.fetch(:id) end def_delegators :model, :as_json, :moon_id, :name, :system_id, :position def model @model ||= Models::Moon.new(response) end def scope; end def url format(API_ENDPOINT, moon_id: id, datasource: datasource) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems