Sha256: e21e8d39d06dd3fc6d74939c7fabac742fbdce947fe4dbb7c14f9a64cd801dc0

Contents?: true

Size: 1.4 KB

Versions: 6

Compression:

Stored size: 1.4 KB

Contents

require_relative 'champion'
require_relative 'champion_mastery'
require_relative 'current_game'
require_relative 'featured_games'
require_relative 'game'
require_relative 'league'
require_relative 'lol_static_data'
require_relative 'lol_status'
require_relative 'match'
require_relative 'match_list'
require_relative 'stats'
require_relative 'summoner'
require_relative 'team'
require_relative 'tournament'

# Combines operations of LoL API.
module Taric
  module Operation
    module API
      include Taric::Operation::Champion
      include Taric::Operation::ChampionMastery
      include Taric::Operation::CurrentGame
      include Taric::Operation::FeaturedGames
      include Taric::Operation::Game
      include Taric::Operation::League
      include Taric::Operation::LolStaticData
      include Taric::Operation::LolStatus
      include Taric::Operation::Match
      include Taric::Operation::MatchList
      include Taric::Operation::Stats
      include Taric::Operation::Summoner
      include Taric::Operation::Team
      include Taric::Operation::Tournament

      # Template for requesting the url and processing the response.
      #
      # @param url String
      # @param requestor Proc (lambda)
      # @param response_handler Proc (lambda)
      API_CALL = -> (method, url, body, headers, requestor, response_handler) {
        response_handler.(requestor.(method, url, body, headers))
      }

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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