Module: Iuliia::Schema
- Defined in:
- lib/iuliia/schema.rb
Class Method Summary collapse
-
.[](schema_name) ⇒ Iuliia::Schema
(also: schema)
Fetch schema by schema name.
-
.available_schemas ⇒ Array
Return list of available schemas.
Class Method Details
.[](schema_name) ⇒ Iuliia::Schema Also known as: schema
Fetch schema by schema name
9 10 11 |
# File 'lib/iuliia/schema.rb', line 9 def [](schema_name) schemas[schema_name] end |
.available_schemas ⇒ Array
Return list of available schemas
18 19 20 |
# File 'lib/iuliia/schema.rb', line 18 def available_schemas load_schemas.transform_values(&:description).to_a end |