Sha256: d9a31d22e95389c836edb4e7f59cab2cf2e930ac67814a139a9f9abdd9c2f77a
Contents?: true
Size: 184 Bytes
Versions: 2
Compression:
Stored size: 184 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
weather-api-1.1.1 | lib/weather-api/image.rb |
weather-api-1.1.0 | lib/weather-api/image.rb |