Class: NexusMods::Api::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/nexus_mods/api/resource.rb

Overview

Base class for any API resource

Direct Known Subclasses

ApiLimits, Category, Game, Mod, ModFile, ModUpdates, User

Instance Method Summary collapse

Constructor Details

#initialize(nexus_mods:) ⇒ Resource

Constructor

Parameters
  • nexus_mods (NexusMods): The NexusMods API instance that the resource can use to query for other resources



12
13
14
# File 'lib/nexus_mods/api/resource.rb', line 12

def initialize(nexus_mods:)
  @nexus_mods = nexus_mods
end