Module: Animatedgifme

Includes:
HTTParty
Defined in:
lib/animatedgifme.rb,
lib/animatedgifme/version.rb

Defined Under Namespace

Classes: Error

Constant Summary collapse

VERSION =
"1.0.1"

Class Method Summary collapse

Class Method Details

.find(id) ⇒ Object



10
11
12
# File 'lib/animatedgifme.rb', line 10

def self.find(id)
  get_retrieve_url "/gifs/#{id}.json"
end

.random(tag) ⇒ Object



18
19
20
# File 'lib/animatedgifme.rb', line 18

def self.random(tag)
  tagged(tag)
end

.tagged(tag) ⇒ Object



14
15
16
# File 'lib/animatedgifme.rb', line 14

def self.tagged(tag)
  get_retrieve_url "/#{tag}.json"
end