Sha256: df5c37a1b60d6e792aecb9397742e71cb15cd2218d07776ea699b0197a94e852

Contents?: true

Size: 318 Bytes

Versions: 17

Compression:

Stored size: 318 Bytes

Contents

module WeatherFetcher
  class ProviderList
    def self.providers(speed = 0.7)
      classes = WeatherFetcher::Provider.constants
      classes = classes.collect{|c| WeatherFetcher::Provider.const_get c}.select{|c| c.kind_of? Class}
      classes.select{|k| not defined? k::SLOW or k::SLOW <= speed}
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
weather_fetcher-0.1.5 lib/weather_fetcher/provider_list.rb
weather_fetcher-0.1.4 lib/weather_fetcher/provider_list.rb
weather_fetcher-0.1.3 lib/weather_fetcher/provider_list.rb
weather_fetcher-0.1.2 lib/weather_fetcher/provider_list.rb
weather_fetcher-0.1.1 lib/weather_fetcher/provider_list.rb
weather_fetcher-0.1.0 lib/weather_fetcher/provider_list.rb
weather_fetcher-0.0.16 lib/weather_fetcher/provider_list.rb
weather_fetcher-0.0.15 lib/weather_fetcher/provider_list.rb
weather_fetcher-0.0.14 lib/weather_fetcher/provider_list.rb
weather_fetcher-0.0.13 lib/weather_fetcher/provider_list.rb
weather_fetcher-0.0.12 lib/weather_fetcher/provider_list.rb
weather_fetcher-0.0.11 lib/weather_fetcher/provider_list.rb
weather_fetcher-0.0.10 lib/weather_fetcher/provider_list.rb
weather_fetcher-0.0.9 lib/weather_fetcher/provider_list.rb
weather_fetcher-0.0.8 lib/weather_fetcher/provider_list.rb
weather_fetcher-0.0.7 lib/weather_fetcher/provider_list.rb
weather_fetcher-0.0.6 lib/weather_fetcher/provider_list.rb