Class: SBF::Client::KidHonorEndpoint
- Inherits:
-
EntityEndpoint
- Object
- EntityEndpoint
- SBF::Client::KidHonorEndpoint
- Defined in:
- lib/stbaldricks/endpoints/kid_honor.rb
Instance Attribute Summary
Attributes inherited from EntityEndpoint
Instance Method Summary collapse
Methods inherited from EntityEndpoint
#aggregate, #create, #find, #find_first, #get, #initialize, #save, #update
Constructor Details
This class inherits a constructor from SBF::Client::EntityEndpoint
Instance Method Details
#delete(params) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/stbaldricks/endpoints/kid_honor.rb', line 6 def delete(params) response = SBF::Client::Api::Request.post_request("#{base_uri}/delete", params) unless ok?(response) error = SBF::Client::ErrorEntity.new(JSON.parse(response.body).symbolize!) end SBF::Client::Api::Response.new(http_code: response.code, data: nil, error: error) end |