require 'wargaming_api/world_of_tanks/clan_ratings'

module WargamingApi
  class WargamingApi::WorldOfTanks::ClanRatings
    class WargamingApi::WorldOfTanks::ClanRatings::DatesWithAvailableRatings < WargamingApi::WorldOfTanks::ClanRatings

      attr_reader :limit

      def initialize
        @language = 'en'
        @application_id = WargamingApi::APP_TOKEN
        @link = 'api.worldoftanks.eu/wot/clanratings/dates'
        @limit = 365
      end

      def set_limit(value)
        if (0 < value) and (value <= 365)
          @limit = value
        else
          @limit = 365
        end
      end

      puts 'WorldOfTanks => ClanRatings -> DatesWithAvailableRatings loaded.'
    end
  end
end