Class: EdFi::Client::Proxy

Inherits:
Crapi::Proxy
  • Object
show all
Defined in:
lib/ed_fi/client/proxy.rb

Overview

The Crapi::Proxy to EdFi::Client's Crapi::Client.

An EdFi::Client::Proxy calls #client= on every CRUD-method-generated EdFi::Client::Response.

Instance Method Summary collapse

Instance Method Details

#delete(*args) ⇒ Object

CRUD method: DELETE

All parameters are passed directly through to Crapi::Proxy#delete.



26
27
28
29
30
31
# File 'lib/ed_fi/client/proxy.rb', line 26

def delete(*args)
  response = super
  response.client = self

  response
end

#get(*args) ⇒ Object

CRUD method: GET

All parameters are passed directly through to Crapi::Proxy#get.



15
16
17
18
19
20
# File 'lib/ed_fi/client/proxy.rb', line 15

def get(*args)
  response = super
  response.client = self

  response
end

#patch(*args) ⇒ Object

CRUD method: PATCH

All parameters are passed directly through to Crapi::Proxy#patch.



48
49
50
51
52
53
# File 'lib/ed_fi/client/proxy.rb', line 48

def patch(*args)
  response = super
  response.client = self

  response
end

#post(*args) ⇒ Object

CRUD method: POST

All parameters are passed directly through to Crapi::Proxy#post.



37
38
39
40
41
42
# File 'lib/ed_fi/client/proxy.rb', line 37

def post(*args)
  response = super
  response.client = self

  response
end

#put(*args) ⇒ Object

CRUD method: PUT

All parameters are passed directly through to Crapi::Proxy#put.



59
60
61
62
63
64
# File 'lib/ed_fi/client/proxy.rb', line 59

def put(*args)
  response = super
  response.client = self

  response
end