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