Sha256: c1ab394211e374aa7af8da6c6e0f49f3991c3daa3b212969ff5f99e24b372382
Contents?: true
Size: 378 Bytes
Versions: 2
Compression:
Stored size: 378 Bytes
Contents
module Weather class Location # the name of the city attr_reader :city # the name of the country attr_reader :country # name of the region, such as a state or province attr_reader :region def initialize(payload) @city = payload[:city].strip @country = payload[:country].strip @region = payload[:region].strip end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
weather-api-1.4.0 | lib/weather-api/location.rb |
weather-api-1.3.0 | lib/weather-api/location.rb |