Class: LesliView::Widgets::Weather

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
lib/lesli_view/widgets/weather.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(date = Time.now) ⇒ Weather

Returns a new instance of Weather.



38
39
40
# File 'lib/lesli_view/widgets/weather.rb', line 38

def initialize(date = Time.now)
    @date = date
end

Instance Attribute Details

#dateObject (readonly)

Returns the value of attribute date.



36
37
38
# File 'lib/lesli_view/widgets/weather.rb', line 36

def date
  @date
end