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