Class: TwitPhoto::Adaptors::LockerzAdaptor
- Inherits:
-
Object
- Object
- TwitPhoto::Adaptors::LockerzAdaptor
- Defined in:
- lib/adaptors.rb
Class Method Summary collapse
Class Method Details
.getImageUrl(url) ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/adaptors.rb', line 21 def self.getImageUrl url # TweetPhoto was a good name, why they changed twice I don't understand if url.index("http://tweetphoto.com") != 0 && url.index("http://plixi.com") != 0 && url.index("http://lockerz.com") != 0 return nil end return "http://api.plixi.com/api/tpapi.svc/imagefromurl?size=medium&url=" + url end |