class Restspec::Stores::SchemaStoreDelegator
Provides methods for the {SchemaStore} object.
Public Instance Methods
get(schema_name)
click to toggle source
Get the schema. It's just an alias for the Hash#[] method
@param schema_name the name of the schema. @return [Restspec::Schema::Schema, nil] the schema found.
# File lib/restspec/stores/schema_store.rb, line 19 def get(schema_name) self[schema_name] end
store(schema)
click to toggle source
Stores
a schema. It uses the name of the schema as the hash key.
@param schema [Restspec::Schema::Schema] the schema to store. @return [Restspec::Schema::Schema] the schema inserted.
# File lib/restspec/stores/schema_store.rb, line 11 def store(schema) self[schema.name] = schema end