class WeatherGov::FeatureCollection

Public Class Methods

feature_class() click to toggle source
# File lib/weather_gov/feature_collection.rb, line 10
def self.feature_class
  Feature
end

Public Instance Methods

features() click to toggle source
# File lib/weather_gov/feature_collection.rb, line 14
def features
  @features ||= data.fetch("features").map { |feature| self.class.feature_class.new(client: client, data: feature) }
end