Module: Restspec::Stores
- Defined in:
- lib/restspec/stores/schema_store.rb,
lib/restspec/stores/endpoint_store.rb,
lib/restspec/stores/namespace_store.rb
Defined Under Namespace
Classes: EndpointStoreDelegator, NamespaceStoreDelegator, SchemaStoreDelegator
Constant Summary collapse
- SchemaStore =
The Schema Store is a Hash extended using SchemaStoreDelegator This is where we store the schemas to use.
It’s important to note that, because this is a Hash, there can’t be two schemas with the same name.
SchemaStoreDelegator.new(Hash.new)
- EndpointStore =
The Endpoint Store is a Hash extended using EndpointStoreDelegator This is where we store the endpoints to tests.
It’s important to note that, because this is a Hash, there can’t be two endpoint with the same full name. There can’t be two endpoints called
books/index
for example. EndpointStoreDelegator.new(Hash.new)
- NamespaceStore =
The Namespace Store is a Hash extended using NamespaceStoreDelegator This is where we store the namespaces of the API.
It’s important to note that, because this is a Hash, there can’t be two namespaces with the same name. Anonymous namespaces can’t be stored here. They are just stored as children of each namespace.
NamespaceStoreDelegator.new(Hash.new)