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