Class: Gooru::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/gooru/request.rb

Direct Known Subclasses

Resources, SignIn

Class Method Summary collapse

Class Method Details

.get(options = {}) ⇒ Object



4
5
6
7
# File 'lib/gooru/request.rb', line 4

def self.get(options = {})
  response = client.new.get(options).perform
  Gooru::Response.new(response)
end

.post(options = {}) ⇒ Object



9
10
11
12
# File 'lib/gooru/request.rb', line 9

def self.post(options = {})
  response = client.new.post(options).perform
  Gooru::Response.new(response)
end