Class: Giphy::Request
- Inherits:
-
Object
- Object
- Giphy::Request
- Defined in:
- lib/giphy/request.rb
Constant Summary collapse
- URL =
'http://api.giphy.com'
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.get(path, options = {}) ⇒ Object
8 9 10 |
# File 'lib/giphy/request.rb', line 8 def self.get(path, ={}) new.get(path, ) end |
.post(path, options = {}) ⇒ Object
12 13 14 |
# File 'lib/giphy/request.rb', line 12 def self.post(path, ={}) new.post(path, ) end |
Instance Method Details
#get(path, options = {}) ⇒ Object
16 17 18 |
# File 'lib/giphy/request.rb', line 16 def get(path, ={}) connection.get(complete_path(path), ()) end |
#post(path, options = {}) ⇒ Object
20 21 22 |
# File 'lib/giphy/request.rb', line 20 def post(path, ={}) connection.post(complete_path(path), ()) end |