Class: RubyPicasa::ThumbnailUrl

Inherits:
PhotoUrl
  • Object
show all
Defined in:
lib/ruby_picasa/types.rb

Instance Method Summary collapse

Instance Method Details

#thumb_nameObject

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