Sha256: c4ae0d9d25d853cf557c59629975c6c2e70eee752842836719731492a3cd4c8c
Contents?: true
Size: 360 Bytes
Versions: 1
Compression:
Stored size: 360 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] @country = payload[:country] @region = payload[:region] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
weather-api-1.2.0 | lib/weather-api/location.rb |