class Hoodoo::Client::Endpoint::NotFound
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.
Public Instance Methods
create( body_hash, query_hash = nil )
click to toggle source
See Hoodoo::Client::Endpoint#create
.
# 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 )
click to toggle source
See Hoodoo::Client::Endpoint#delete
.
# 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 )
click to toggle source
See Hoodoo::Client::Endpoint#list
.
# 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 )
click to toggle source
See Hoodoo::Client::Endpoint#show
.
# 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 )
click to toggle source
See Hoodoo::Client::Endpoint#update
.
# 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
Protected Instance Methods
configure_with( resource, version, options )
click to toggle source
See Hoodoo::Client::Endpoint#configure_with
.
Does nothing in this subclass.
# File lib/hoodoo/client/endpoint/endpoints/not_found.rb, line 21 def configure_with( resource, version, options ) end