Sha256: 3b7ec5de7599ac2b32fdbbc40fe11dbb99e933f80e0984e7064c7754a7119833

Contents?: true

Size: 1.32 KB

Versions: 1

Compression:

Stored size: 1.32 KB

Contents

require_relative 'champion'
require_relative 'champion_mastery'
require_relative 'league'
require_relative 'lol_static_data'
require_relative 'lol_status'
require_relative 'masteries'
require_relative 'match'
require_relative 'runes'
require_relative 'spectator'
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::League
      include Taric::Operation::LolStaticData
      include Taric::Operation::LolStatus
      include Taric::Operation::Masteries
      include Taric::Operation::Match
      include Taric::Operation::Runes
      include Taric::Operation::Spectator
      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

1 entries across 1 versions & 1 rubygems

Version Path
taric-1.0.0.pre.alpha.8 lib/taric/operation/api.rb