Sha256: c3c68a77e1bd90a5573f83b108a87d42574930a3ae05f5a2ca6eda7c91f63042

Contents?: true

Size: 466 Bytes

Versions: 1

Compression:

Stored size: 466 Bytes

Contents

# frozen_string_literal: true

require 'json'

module SoccersApi
  class Continent
    class << self
      require 'rest-client'
      CONTINENT = 'continents'.freeze

      def all
        SoccersApi.api_url(
          api_for: CONTINENT,
          type: "list"
        )
      end

      def by_id(id)
        SoccersApi.api_url(
          api_for: CONTINENT,
          type: "info",
          id_type: 'id',
          id: id
        )
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
soccers_api-1.0.6 lib/soccers_api/continent.rb