Class: SnipSnap::Twitgoo

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

Instance Method Summary collapse

Methods included from Client

included

Instance Method Details

#image_urlObject



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

def image_url
  body = response.body_str
  body.match(/<imageurl>(.+)<\/imageurl>/)[1]
end

#urlObject



6
7
8
9
# File 'lib/snip_snap/twitgoo.rb', line 6

def url
  identifier = @url.match(/([^\/]+)$/)[1]
  "http://twitgoo.com/api/message/info/#{identifier}"
end