Sha256: 1ebbf76fc59dff7529be86ebf201e0eb3bd9d188de151be7477cc7fff10f4338
Contents?: true
Size: 872 Bytes
Versions: 1
Compression:
Stored size: 872 Bytes
Contents
# frozen_string_literal: true require 'forwardable' module EveOnline module ESI class UniverseStation < Base extend Forwardable API_ENDPOINT = 'https://esi.evetech.net/v2/universe/stations/%<station_id>s/?datasource=%<datasource>s' attr_reader :id def initialize(options) super @id = options.fetch(:id) end def_delegators :model, :as_json, :max_dockable_ship_volume, :name, :office_rental_cost, :owner, :race_id, :reprocessing_efficiency, :reprocessing_stations_take, :services, :station_id, :system_id, :type_id, :position def model Models::Station.new(response) end memoize :model def scope; end def url format(API_ENDPOINT, station_id: id, datasource: datasource) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.20.0 | lib/eve_online/esi/universe_station.rb |