Base
Base class for capability API builders.
Provides access to capability options and aggregated configuration across all representations.
Instance Methods
#build
#build
Builds API-level types.
Override this method to register shared types.
Returns
void
#configured
#configured(key)
The configured values for a key.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
key | Symbol | The configuration key. |
Returns
Set
Example: Check if any representation uses cursor pagination
ruby
if configured(:strategy).include?(:cursor)
# build cursor pagination schema
end#enum
#enum(name, values:, **options, &block)
See also
#enum?
#enum?(name)
See also
#object
#object(name, **options, &block)
See also
#options
#options
The options for this API.
Returns
#type?
#type?(name)
See also
#union
#union(name, **options, &block)
See also