Sha256: 096cc704f24aa93f736f7525cf483ab19c3bf450fd185cf8bc03c9658dd19842
Contents?: true
Size: 353 Bytes
Versions: 1
Compression:
Stored size: 353 Bytes
Contents
module GoogleBook class Images attr_accessor :url def initialize(url) self.url = url end def thumbnail url end def small zoom(1) end def medium zoom(2) end def large zoom(3) end private def zoom(level) url.gsub('zoom=5', "zoom=#{level}") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
googlebook-0.1.2 | lib/googlebook/images.rb |