module Animatedgif
Constants
- VERSION
Public Class Methods
find(id)
click to toggle source
# File lib/animatedgif.rb, line 8 def self.find(id) retrive_url get("/gifs/#{id}.json") end
random(tag)
click to toggle source
# File lib/animatedgif.rb, line 16 def self.random(tag) tagged(tag) end
tagged(tag)
click to toggle source
# File lib/animatedgif.rb, line 12 def self.tagged(tag) retrive_url get("/#{tag}.json") end
Private Instance Methods
retrive_url(response)
click to toggle source
# File lib/animatedgif.rb, line 22 def retrive_url(response) response.parsed_response["url"] end