Class: RubyPicasa::ThumbnailUrl
- Defined in:
- lib/ruby_picasa/types.rb
Instance Method Summary collapse
-
#thumb_name ⇒ Object
The name of the current thumbnail.
Instance Method Details
#thumb_name ⇒ Object
The name of the current thumbnail. For possible names, see Photo#url
17 18 19 20 21 22 |
# File 'lib/ruby_picasa/types.rb', line 17 def thumb_name name = url.scan(%r{/s([^/]+)/[^/]+$}).flatten.compact.first if name name.sub(/-/, '') end end |