Class: BlizzardApi::Wow::Creature
- Inherits:
 - 
      GenericDataEndpoint
      
        
- Object
 - Request
 - Request
 - GenericDataEndpoint
 - BlizzardApi::Wow::Creature
 
 
- Includes:
 - Searchable
 
- Defined in:
 - lib/blizzard_api/wow/game_data/creature.rb
 
Overview
This class allows access to World of Warcraft creatures
You can get an instance of this class using the default region as follows:
api_instance = BlizzardApi::Wow.creature
  Constant Summary
Constants inherited from Request
Request::CACHE_DAY, Request::CACHE_HOUR, Request::CACHE_TRIMESTER
Constants included from ApiStandards
Instance Attribute Summary
Attributes inherited from Request
Instance Method Summary collapse
- 
  
    
      #display_media(id, **options)  ⇒ Hash 
    
    
  
  
  
  
  
  
  
  
  
    
Fetch media for one of the items listed by the #types using its id.
 - 
  
    
      #families(**options)  ⇒ Hash 
    
    
  
  
  
  
  
  
  
  
  
    
Fetch all creature families.
 - 
  
    
      #family(id, **options)  ⇒ Hash 
    
    
  
  
  
  
  
  
  
  
  
    
Fetch all possible data for one of the items listed by the #families using its id.
 - 
  
    
      #family_media(id, **options)  ⇒ Hash 
    
    
  
  
  
  
  
  
  
  
  
    
Fetch media for one of the items listed by the #families using its id.
 - #index ⇒ Object
 - 
  
    
      #type(id, **options)  ⇒ Hash 
    
    
  
  
  
  
  
  
  
  
  
    
Fetch all possible data for one of the items listed by the #types using its id.
 - 
  
    
      #types(**options)  ⇒ Hash 
    
    
  
  
  
  
  
  
  
  
  
    
Fetch all creature types.
 
Methods included from Searchable
Methods inherited from GenericDataEndpoint
Methods inherited from Request
Methods inherited from Request
Constructor Details
This class inherits a constructor from BlizzardApi::Wow::Request
Instance Method Details
#display_media(id, **options) ⇒ Hash
Fetch media for one of the items listed by the #types using its id
in the configuration module
      97 98 99  | 
    
      # File 'lib/blizzard_api/wow/game_data/creature.rb', line 97 def display_media(id, **) api_request "#{base_url(:media)}/creature-display/#{id}", **.merge() end  | 
  
#families(**options) ⇒ Hash
Fetch all creature families
in the configuration module
      29 30 31  | 
    
      # File 'lib/blizzard_api/wow/game_data/creature.rb', line 29 def families(**) api_request "#{endpoint_uri('family')}/index", **.merge() end  | 
  
#family(id, **options) ⇒ Hash
Fetch all possible data for one of the items listed by the #families using its id
in the configuration module
      43 44 45  | 
    
      # File 'lib/blizzard_api/wow/game_data/creature.rb', line 43 def family(id, **) api_request "#{endpoint_uri('family')}/#{id}", **.merge() end  | 
  
#family_media(id, **options) ⇒ Hash
Fetch media for one of the items listed by the #families using its id
in the configuration module
      57 58 59  | 
    
      # File 'lib/blizzard_api/wow/game_data/creature.rb', line 57 def family_media(id, **) api_request "#{base_url(:media)}/creature-family/#{id}", **.merge() end  | 
  
#index ⇒ Object
      17 18 19  | 
    
      # File 'lib/blizzard_api/wow/game_data/creature.rb', line 17 def index raise BlizzardApi::ApiException, 'Creatures endpoint does not have an index method' end  | 
  
#type(id, **options) ⇒ Hash
Fetch all possible data for one of the items listed by the #types using its id
in the configuration module
      83 84 85  | 
    
      # File 'lib/blizzard_api/wow/game_data/creature.rb', line 83 def type(id, **) api_request "#{endpoint_uri('type')}/#{id}", **.merge() end  | 
  
#types(**options) ⇒ Hash
Fetch all creature types
in the configuration module
      69 70 71  | 
    
      # File 'lib/blizzard_api/wow/game_data/creature.rb', line 69 def types(**) api_request "#{endpoint_uri('type')}/index", **.merge() end  |