class OpenWeather::Models::List
Public Class Methods
new(args = nil, options = {})
click to toggle source
Calls superclass method
# File lib/open_weather/models/list.rb, line 14 def initialize(args = nil, options = {}) super args, options self.list = list.map { |i| OpenWeather::Models::City::Weather.new(i, options) } if list end
Public Instance Methods
each(&block)
click to toggle source
# File lib/open_weather/models/list.rb, line 20 def each(&block) list.each(&block) end