Class: BlizzardApi::Wow::GuildCrest
- Inherits:
-
GenericDataEndpoint
- Object
- Request
- Request
- GenericDataEndpoint
- BlizzardApi::Wow::GuildCrest
- Defined in:
- lib/blizzard_api/wow/game_data/guild_crest.rb
Overview
This class allows access to World of Warcraft guild crest data
You can get an instance of this class using the default region as follows:
api_instance = BlizzardApi::Wow.guild_crest
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
-
#border_media(id, **options) ⇒ Hash
Return guild border assets by its id.
-
#emblem_media(id, **options) ⇒ Hash
Return guild embelm assets by its id.
- #get ⇒ Object
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
#border_media(id, **options) ⇒ Hash
Return guild border assets by its id
in the configuration module
29 30 31 |
# File 'lib/blizzard_api/wow/game_data/guild_crest.rb', line 29 def border_media(id, **) api_request "#{base_url(:media)}/#{self.class.endpoint}/border/#{id}", **.merge() end |
#emblem_media(id, **options) ⇒ Hash
Return guild embelm assets by its id
in the configuration module
43 44 45 |
# File 'lib/blizzard_api/wow/game_data/guild_crest.rb', line 43 def emblem_media(id, **) api_request "#{base_url(:media)}/#{self.class.endpoint}/emblem/#{id}", **.merge() end |
#get ⇒ Object
15 16 17 |
# File 'lib/blizzard_api/wow/game_data/guild_crest.rb', line 15 def get raise BlizzardApi::ApiException, 'This endpoint does not have a get method' end |