Sha256: a06ab68315d21a839befa84c2bde60b61918f7497ce3472a6b319237d244947a
Contents?: true
Size: 764 Bytes
Versions: 4
Compression:
Stored size: 764 Bytes
Contents
# frozen_string_literal: true require 'forwardable' module EveOnline module ESI class UniverseGraphic < Base extend Forwardable API_PATH = '/v1/universe/graphics/%<graphic_id>s/?datasource=%<datasource>s' attr_reader :id def initialize(options) super @id = options.fetch(:id) end def_delegators :model, :as_json, :collision_file, :graphic_file, :graphic_id, :icon_folder, :sof_dna, :sof_fation_name, :sof_hull_name, :sof_race_name def model @model ||= Models::Graphic.new(response) end def scope; end def url format("#{ API_HOST }#{ API_PATH }", graphic_id: id, datasource: datasource) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems