class BlizzardApi::Wow::Reputation
This class allows access to World of Warcraft reputation
@see develop.battle.net/documentation/api-reference/world-of-warcraft-game-data-api
You can get an instance of this class using the default region as follows:
api_instance = BlizzardApi::Wow.reputation
Public Instance Methods
Return data about a reputation faction
@param id [Integer] Reputation
faction id @!macro request_options
@!macro response
# File lib/blizzard_api/wow/game_data/reputation.rb, line 46 def faction(id, **options) api_request "#{endpoint_uri('faction')}/#{id}", **default_options.merge(options) end
Return a list of reputation factions
@!macro request_options
@!macro response
# File lib/blizzard_api/wow/game_data/reputation.rb, line 35 def factions(**options) api_request "#{endpoint_uri('faction')}/index", **default_options.merge(options) end
This method overrides the inherited default behavior to prevent high server load and fetch time
@!macro response
# File lib/blizzard_api/wow/game_data/reputation.rb, line 25 def get raise BlizzardApi::ApiException, 'This endpoint does not have a get method' end
This method overrides the inherited default behavior to prevent high server load and fetch time
@!macro response
# File lib/blizzard_api/wow/game_data/reputation.rb, line 17 def index raise BlizzardApi::ApiException, 'This endpoint does not have a index method' end
Return data about a reputation tier
@param id [Integer] Reputation
tier id @!macro request_options
@!macro response
# File lib/blizzard_api/wow/game_data/reputation.rb, line 67 def tier(id, **options) api_request "#{endpoint_uri('tiers')}/#{id}", **default_options.merge(options) end
Return a list of reputation tiers
@!macro request_options
@!macro response
# File lib/blizzard_api/wow/game_data/reputation.rb, line 56 def tiers(**options) api_request "#{endpoint_uri('tiers')}/index", **default_options.merge(options) end
Protected Instance Methods
# File lib/blizzard_api/wow/game_data/reputation.rb, line 73 def endpoint_setup @endpoint = 'reputation' @namespace = :static @collection = 'reputations' @ttl = CACHE_TRIMESTER end