Sha256: d4321476c25d79722faddfaa19216da46b34df6973bac8bdb80825fd0d8f4346

Contents?: true

Size: 477 Bytes

Versions: 1

Compression:

Stored size: 477 Bytes

Contents

module SoccersApi
  class Round
    class << self
      require 'rest-client'
      ROUND = 'rounds'.freeze

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

      def by_season(season_id)
        SoccersApi.api_url(
          api_for: ROUND,
          type: "byseason",
          id_type: 'season_id',
          id: season_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/round.rb