Module: Lol

Defined in:
lib/lol.rb,
lib/lol/client.rb,
lib/lol/request.rb,
lib/lol/version.rb,
lib/lol/dynamic_model.rb,
lib/lol/match_request.rb,
lib/lol/runes_request.rb,
lib/lol/league_request.rb,
lib/lol/static_request.rb,
lib/lol/champion_request.rb,
lib/lol/summoner_request.rb,
lib/lol/masteries_request.rb,
lib/lol/spectator_request.rb,
lib/lol/featured_game_list.rb,
lib/lol/lol_status_request.rb,
lib/lol/tournament_request.rb,
lib/lol/invalid_api_response.rb,
lib/lol/champion_mastery_request.rb

Defined Under Namespace

Classes: ChampionMasteryRequest, ChampionRequest, Client, DynamicModel, FeaturedGameList, InvalidAPIResponse, InvalidCacheStore, LeagueRequest, LolStatusRequest, MasteriesRequest, MatchRequest, NotFound, Request, RunesRequest, SpectatorRequest, StaticRequest, SummonerRequest, TooManyRequests, TournamentRequest

Constant Summary collapse

VERSION =
"1.2.0"

Class Method Summary collapse

Class Method Details

.underscore_hash_keys(hash) ⇒ Hash

Takes a hash and returns a copy of it with the keys that have been underscored This method is here but should be somewhere else, probably an helper module


12
13
14
# File 'lib/lol.rb', line 12

def self.underscore_hash_keys hash
  hash.inject({}) { |memo, (key, value)| memo.update key.to_s.underscore => value }
end