Class: Vidsy::Data::API::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/vidsy/data/api/client.rb

Instance Method Summary collapse

Instance Method Details

#get(path) ⇒ Object



8
9
10
11
# File 'lib/vidsy/data/api/client.rb', line 8

def get(path)
  api_response = request.get path
  response api_response
end

#post(path, options) ⇒ Object



13
14
15
16
# File 'lib/vidsy/data/api/client.rb', line 13

def post(path, options)
  api_response = request.post(path, options)
  response api_response
end