Sha256: 36b1b7e7015f4d990e8d860a8a6d05bf12b513924330dcd12a6083c44e9ad0df

Contents?: true

Size: 229 Bytes

Versions: 4

Compression:

Stored size: 229 Bytes

Contents

module WeatherFetcher
  class ProviderList
    def self.providers
      classes = WeatherFetcher::Provider.constants
      classes.collect{|c| WeatherFetcher::Provider.const_get c}.select{|c| c.kind_of? Class}
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
weather_fetcher-0.0.5 lib/weather_fetcher/provider_list.rb
weather_fetcher-0.0.4 lib/weather_fetcher/provider_list.rb
weather_fetcher-0.0.3 lib/weather_fetcher/provider_list.rb
weather_fetcher-0.0.2 lib/weather_fetcher/provider_list.rb