Module: Iuliia::Schema

Defined in:
lib/iuliia/schema.rb

Class Method Summary collapse

Class Method Details

.[](schema_name) ⇒ Iuliia::Schema Also known as: schema

Fetch schema by schema name

Parameters:

  • schema_name (String)

Returns:



9
10
11
# File 'lib/iuliia/schema.rb', line 9

def [](schema_name)
  schemas[schema_name]
end

.available_schemasArray

Return list of available schemas

Returns:

  • (Array)


18
19
20
# File 'lib/iuliia/schema.rb', line 18

def available_schemas
  load_schemas.transform_values(&:description).to_a
end