Sha256: 859b339dc460b48d0b9160be7146f99446591fb054503d5bf2986e39110e4541

Contents?: true

Size: 644 Bytes

Versions: 5

Compression:

Stored size: 644 Bytes

Contents

require_relative 'endpoint_template'
module Taric
  module Operation
    module LolStatus
      SHARDS =  EndpointTemplate.new(template_url: 'http://status.leagueoflegends.com/shards')
      SHARD =  EndpointTemplate.new(template_url: 'http://status.leagueoflegends.com/shards/{region}')

      # Region metadata.
      #
      # @return [Array] of region metadata in hashes
      def shards
        response_for SHARDS
      end

      # Region metadata by region.
      # @param region [String] region to load
      # @return [Hash] region info
      def shard(region:)
        response_for SHARD, {region: region}
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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