Sha256: 5afb41a5209d907cb15b75e5d73ec1305f0d5e4437bece93862be9dc28aa6a91

Contents?: true

Size: 517 Bytes

Versions: 20

Compression:

Stored size: 517 Bytes

Contents

module Taric
  module Operation
    module FeaturedGames
      FEATURED_GAMES = Addressable::Template.new 'https://{host}/observer-mode/rest/featured{?api_key}'

      # Returns featured games.
      #
      # @see https://developer.riotgames.com/api/methods#!/957/3288
      # @return [Hash] of featured games in [Array] keyed by 'gameList'
      #
      # @example
      #   featured_games = client.featured_games['gameList']
      def featured_games
        response_for FEATURED_GAMES
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
taric-0.4.0 lib/taric/operation/featured_games.rb
taric-0.3.4 lib/taric/operation/featured_games.rb
taric-0.3.3 lib/taric/operation/featured_games.rb
taric-0.3.1 lib/taric/operation/featured_games.rb
taric-0.3.0 lib/taric/operation/featured_games.rb
taric-0.2.4 lib/taric/operation/featured_games.rb
taric-0.2.2 lib/taric/operation/featured_games.rb
taric-0.2.1 lib/taric/operation/featured_games.rb
taric-0.2.0 lib/taric/operation/featured_games.rb
taric-0.1.14 lib/taric/operation/featured_games.rb
taric-0.1.13 lib/taric/operation/featured_games.rb
taric-0.1.12 lib/taric/operation/featured_games.rb
taric-0.1.11 lib/taric/operation/featured_games.rb
taric-0.1.10 lib/taric/operation/featured_games.rb
taric-0.1.9 lib/taric/operation/featured_games.rb
taric-0.1.8 lib/taric/operation/featured_games.rb
taric-0.1.7 lib/taric/operation/featured_games.rb
taric-0.1.6 lib/taric/operation/featured_games.rb
taric-0.1.5 lib/taric/operation/featured_games.rb
taric-0.1.4 lib/taric/operation/featured_games.rb