Class: SnipSnap::Yfrog

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

Instance Method Summary collapse

Methods included from Client

included

Instance Method Details

#image_urlObject



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

def image_url
  body = response.body_str
  body.match(/<link rel="image_src" href="(.+)" \/>/)[1]
end