Sha256: c6ea74974e2e86d6061e8df28b05633d72cc72ffa4ce44455abce9750983a365
Contents?: true
Size: 851 Bytes
Versions: 1
Compression:
Stored size: 851 Bytes
Contents
# frozen_string_literal: true require 'forwardable' module EveOnline module ESI class UniverseType < Base extend Forwardable API_ENDPOINT = 'https://esi.tech.ccp.is/v3/universe/types/%<type_id>s/?datasource=%<datasource>s&language=en-us' attr_reader :id def initialize(options) super @id = options.fetch(:id) end def_delegators :model, :as_json, :capacity, :description, :graphic_id, :group_id, :icon_id, :market_group_id, :mass, :name, :packaged_volume, :portion_size, :published, :radius, :type_id, :volume def model Models::Type.new(response) end memoize :model def scope; end def url format(API_ENDPOINT, type_id: id, datasource: datasource) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.17.0 | lib/eve_online/esi/universe_type.rb |