Sha256: 73f56e00fecc7ac38573d97ddeb4c47ce92786b3de954b93e698ccd380320813
Contents?: true
Size: 686 Bytes
Versions: 4
Compression:
Stored size: 686 Bytes
Contents
# frozen_string_literal: true require 'forwardable' module EveOnline module ESI class UniverseCategory < Base extend Forwardable API_ENDPOINT = 'https://esi.evetech.net/v1/universe/categories/%<category_id>s/?datasource=%<datasource>s' attr_reader :id def initialize(options) super @id = options.fetch(:id) end def_delegators :model, :as_json, :category_id, :name, :published, :group_ids def model @model ||= Models::Category.new(response) end def scope; end def url format(API_ENDPOINT, category_id: id, datasource: datasource) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems