Sha256: 6549aff93b85fdb8fcac64be0b9fc81657f1e3f86e47f44439a2b3bd0fa9accc

Contents?: true

Size: 563 Bytes

Versions: 8

Compression:

Stored size: 563 Bytes

Contents

require_relative 'endpoint_template'
module Taric
  module Operation
    module FeaturedGames
      FEATURED_GAMES = EndpointTemplate.new(template_url:'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

8 entries across 8 versions & 1 rubygems

Version Path
taric-1.0.0.pre.alpha.6 lib/taric/operation/featured_games.rb
taric-1.0.0.pre.alpha.4 lib/taric/operation/featured_games.rb
taric-1.0.0.pre.alpha.3 lib/taric/operation/featured_games.rb
taric-1.0.0.pre.alpha.2 lib/taric/operation/featured_games.rb
taric-1.0.0.pre.alpha.1 lib/taric/operation/featured_games.rb
taric-1.0.0.pre.alpha lib/taric/operation/featured_games.rb
taric-0.5.1 lib/taric/operation/featured_games.rb
taric-0.5.0 lib/taric/operation/featured_games.rb