Class: SnipSnap::Twitgoo
- Inherits:
-
Object
- Object
- SnipSnap::Twitgoo
- Includes:
- Client
- Defined in:
- lib/snip_snap/twitgoo.rb
Instance Method Summary collapse
Methods included from Client
Instance Method Details
#image_url ⇒ Object
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 |
#url ⇒ Object
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 |