Sha256: b3d26b881a2534b8634fc82905b95d66a75be31e6526b7b2cd9c4759b07cf050

Contents?: true

Size: 359 Bytes

Versions: 2

Compression:

Stored size: 359 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

2 entries across 2 versions & 1 rubygems

Version Path
weather-api-1.1.1 lib/weather-api/location.rb
weather-api-1.1.0 lib/weather-api/location.rb