UUID
UUID param representing universally unique identifier values.
Example: Basic usage
param.type # => :uuid
param.scalar? # => true
param.uuid? # => trueExample: Capabilities
param.formattable? # => falseExample: Enum
if param.enum?
param.enum # => ["550e8400-e29b-41d4-a716-446655440000"]
param.enum_reference? # => false
endInstance Methods
#array?
#array?
Whether this param is an array.
Returns
Boolean
#binary?
#binary?
Whether this param is binary data.
Returns
Boolean
#boolean?
#boolean?
Whether this param is a boolean.
Returns
Boolean
#boundable?
#boundable?
Whether this param is boundable.
Returns
Boolean
#date?
#date?
Whether this param is a date.
Returns
Boolean
#datetime?
#datetime?
Whether this param is a datetime.
Returns
Boolean
#decimal?
#decimal?
Whether this param is a decimal.
Returns
Boolean
#default
#default
The default for this param.
Returns
Object, nil
#default?
#default?
Whether this param has a default.
Returns
Boolean
#deprecated?
#deprecated?
Whether this param is deprecated.
Returns
Boolean
#description
#description
The description for this param.
Returns
String, nil
#enum
#enum
The enum for this param.
Returns
Array<String>, Symbol, nil
#enum?
#enum?
Whether this param has an enum.
Returns
Boolean
#enum_reference?
#enum_reference?
Whether this param is an enum reference.
Returns
Boolean
#example
#example
The example for this param.
Returns
Object, nil
#formattable?
#formattable?
Whether this param is formattable.
Returns
Boolean
#integer?
#integer?
Whether this param is an integer.
Returns
Boolean
#literal?
#literal?
Whether this param is a literal.
Returns
Boolean
#nullable?
#nullable?
Whether this param is nullable.
Returns
Boolean
#number?
#number?
Whether this param is a number.
Returns
Boolean
#numeric?
#numeric?
Whether this param is numeric.
Returns
Boolean
#object?
#object?
Whether this param is an object.
Returns
Boolean
#optional?
#optional?
Whether this param is optional.
Returns
Boolean
#partial?
#partial?
Whether this param is partial.
Returns
Boolean
#reference?
#reference?
Whether this param is a reference.
Returns
Boolean
#scalar?
#scalar?
Whether this param is scalar.
Returns
Boolean
#string?
#string?
Whether this param is a string.
Returns
Boolean
#tag
#tag
The tag for this param.
Returns
String, nil
#time?
#time?
Whether this param is a time.
Returns
Boolean
#to_h
#to_h
Converts this param to a hash.
Returns
Hash
#type
#type
The type for this param.
Returns
Symbol
#union?
#union?
Whether this param is a union.
Returns
Boolean
#unknown?
#unknown?
Whether this param is of unknown type.
Returns
Boolean
#uuid?
#uuid?
Whether this param is a UUID.
Returns
Boolean