Method: DarkSky::Location#today

Defined in:
lib/darksky-api/day.rb

#todayDay Also known as: in_0_days

Returns class containing data for given day.

Examples:

location = DarkSky::Location.new [45, -90]
location.today #=> DarkSky::Location::Day

Returns:

  • (Day)

    class containing data for given day

Since:

  • 0.1.3



265
266
267
# File 'lib/darksky-api/day.rb', line 265

def today
  Day.new self, 0
end