Class: SnipSnap::Twitpic

Inherits:
Object
  • Object
show all
Includes:
Client
Defined in:
lib/snip_snap/twitpic.rb

Instance Method Summary collapse

Methods included from Client

included

Instance Method Details

#identifierObject



8
9
10
# File 'lib/snip_snap/twitpic.rb', line 8

def identifier
  url.match(/([^\/]+)$/)[1]
end

#image_urlObject



12
13
14
# File 'lib/snip_snap/twitpic.rb', line 12

def image_url
  "http://twitpic.com/show/large/#{identifier}"
end