Class: Giphy::GifByID
- Inherits:
-
Object
- Object
- Giphy::GifByID
- Defined in:
- lib/giphy/gif_by_id.rb
Instance Method Summary collapse
Instance Method Details
#get(ids) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/giphy/gif_by_id.rb', line 3 def get(ids) case ids.size when 0 raise Giphy::Errors::ArgumentError.new('wrong number of arguments (0 for 1...Infinite)') when 1 one_gif(ids.first) else several_gifs(ids) end end |