Sha256: 06d6666dff0f68c03c3ee52874846be3d4a814f3ba01c07422f9cbdbcffeeda9

Contents?: true

Size: 185 Bytes

Versions: 3

Compression:

Stored size: 185 Bytes

Contents

module Weather
  class Image
    # the full URL to the image
    attr_reader :url

    def initialize(payload)
      @url = payload.scan(/src=\"(.*)\"/).flatten.first
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
weather-api-1.4.0 lib/weather-api/image.rb
weather-api-1.3.0 lib/weather-api/image.rb
weather-api-1.2.0 lib/weather-api/image.rb