Class: Hoodoo::Client::Endpoint::NotFound
- Inherits:
-
HTTPBased
- Object
- Hoodoo::Client::Endpoint
- HTTPBased
- Hoodoo::Client::Endpoint::NotFound
- Defined in:
- lib/hoodoo/client/endpoint/endpoints/not_found.rb
Overview
An endpoint that, when called, returns ‘Not Found’ for the resource at hand. Used to emulate lazily resolved endpoints when in fact, the lack of endpoint presence is already known.
Ignores any discovery result data if provided.
Instance Attribute Summary
Attributes inherited from Hoodoo::Client::Endpoint
#interaction, #locale, #resource, #session_id, #version
Instance Method Summary collapse
-
#create(body_hash, query_hash = nil) ⇒ Object
See Hoodoo::Client::Endpoint#create.
-
#delete(ident, query_hash = nil) ⇒ Object
See Hoodoo::Client::Endpoint#delete.
-
#list(query_hash = nil) ⇒ Object
See Hoodoo::Client::Endpoint#list.
-
#show(ident, query_hash = nil) ⇒ Object
See Hoodoo::Client::Endpoint#show.
-
#update(ident, body_hash, query_hash = nil) ⇒ Object
See Hoodoo::Client::Endpoint#update.
Methods inherited from Hoodoo::Client::Endpoint
Constructor Details
This class inherits a constructor from Hoodoo::Client::Endpoint
Instance Method Details
#create(body_hash, query_hash = nil) ⇒ Object
See Hoodoo::Client::Endpoint#create.
40 41 42 |
# File 'lib/hoodoo/client/endpoint/endpoints/not_found.rb', line 40 def create( body_hash, query_hash = nil ) return generate_404_response_for( :create ) end |
#delete(ident, query_hash = nil) ⇒ Object
See Hoodoo::Client::Endpoint#delete.
52 53 54 |
# File 'lib/hoodoo/client/endpoint/endpoints/not_found.rb', line 52 def delete( ident, query_hash = nil ) return generate_404_response_for( :delete ) end |
#list(query_hash = nil) ⇒ Object
See Hoodoo::Client::Endpoint#list.
28 29 30 |
# File 'lib/hoodoo/client/endpoint/endpoints/not_found.rb', line 28 def list( query_hash = nil ) return generate_404_response_for( :list ) end |
#show(ident, query_hash = nil) ⇒ Object
See Hoodoo::Client::Endpoint#show.
34 35 36 |
# File 'lib/hoodoo/client/endpoint/endpoints/not_found.rb', line 34 def show( ident, query_hash = nil ) return generate_404_response_for( :show ) end |
#update(ident, body_hash, query_hash = nil) ⇒ Object
See Hoodoo::Client::Endpoint#update.
46 47 48 |
# File 'lib/hoodoo/client/endpoint/endpoints/not_found.rb', line 46 def update( ident, body_hash, query_hash = nil ) return generate_404_response_for( :update ) end |