module TestWrapper

Constants

VERSION

Public Class Methods

find(id) click to toggle source
# File lib/test_wrapper.rb, line 9
def self.find(id)
  retrieve_url get("/gifs/#{id}.json")
  # retrieve_url(get("/gifs/#{id}.json"))
end
random(tag) click to toggle source
# File lib/test_wrapper.rb, line 18
def self.random(tag)
  tagged(tag)
end
tagged(tag) click to toggle source
# File lib/test_wrapper.rb, line 14
def self.tagged(tag)
  retrieve_url get("/#{tag}.json")
end

Private Instance Methods

retrieve_url(response) click to toggle source
# File lib/test_wrapper.rb, line 24
def retrieve_url(response)
  response.parsed_response['url']
end