Class: SBF::Client::KidInstitutionEndpoint

Inherits:
EntityEndpoint show all
Defined in:
lib/stbaldricks/endpoints/kid_institution.rb

Instance Attribute Summary

Attributes inherited from EntityEndpoint

#orig_target_class

Instance Method Summary collapse

Methods inherited from EntityEndpoint

#aggregate, #create, #find, #find_first, #initialize, #save, #update

Constructor Details

This class inherits a constructor from SBF::Client::EntityEndpoint

Instance Method Details

#delete(params) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/stbaldricks/endpoints/kid_institution.rb', line 10

def delete(params)
  response = SBF::Client::Api::Request.post_request("#{base_uri}/delete", params)

  error = SBF::Client::ErrorEntity.new(JSON.parse(response.body).symbolize!) unless ok?(response)

  SBF::Client::Api::Response.new(http_code: response.code, data: nil, error: error)
end

#get(kid_id, institution_id, with = {}) ⇒ Object



6
7
8
# File 'lib/stbaldricks/endpoints/kid_institution.rb', line 6

def get(kid_id, institution_id, with = {})
  super("#{kid_id}/#{institution_id}", with)
end