class Weather::Location

Attributes

city[R]

the name of the city

country[R]

the name of the country

region[R]

name of the region, such as a state or province

Public Class Methods

new(payload) click to toggle source
# File lib/weather-api/location.rb, line 12
def initialize(payload)
  @city = payload[:city].strip
  @country = payload[:country].strip
  @region = payload[:region].strip
end