Sha256: 092b20e5377ee028694dbb51c08c5e77aa933227bfe853c76ffad3c653ece546

Contents?: true

Size: 672 Bytes

Versions: 4

Compression:

Stored size: 672 Bytes

Contents

# frozen_string_literal: true

require 'forwardable'

module EveOnline
  module ESI
    class UniverseAsteroidBelt < Base
      extend Forwardable

      API_ENDPOINT = 'https://esi.evetech.net/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_ENDPOINT, asteroid_belt_id: id, datasource: datasource)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
eve_online-0.23.0 lib/eve_online/esi/universe_asteroid_belt.rb
eve_online-0.22.0 lib/eve_online/esi/universe_asteroid_belt.rb
eve_online-0.21.0 lib/eve_online/esi/universe_asteroid_belt.rb
eve_online-0.20.0 lib/eve_online/esi/universe_asteroid_belt.rb