Class: Moonbase::Models::Collections::FieldCreateParams::Field::FieldNumberUnitlessFloat
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Moonbase::Models::Collections::FieldCreateParams::Field::FieldNumberUnitlessFloat
- Defined in:
- lib/moonbase/models/collections/field_create_params.rb
Defined Under Namespace
Modules: Cardinality
Instance Attribute Summary collapse
-
#cardinality ⇒ Symbol, ...
Whether the field holds a single value (‘one`) or multiple values (`many`).
- #default_values ⇒ Array<Moonbase::Models::FloatValue>?
-
#description ⇒ String?
An optional description of the field’s purpose.
-
#name ⇒ String
The human-readable name for the field.
-
#required ⇒ Boolean?
If ‘true`, items must have a value for this field.
-
#type ⇒ Symbol, :"field/number/unitless_float"
The field type.
-
#unique ⇒ Boolean?
If ‘true`, values must be unique across all items.
Instance Method Summary collapse
-
#initialize(name:, cardinality: nil, default_values: nil, description: nil, required: nil, unique: nil, type: :"field/number/unitless_float") ⇒ Object
constructor
Some parameter documentations has been truncated, see FieldNumberUnitlessFloat for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(name:, cardinality: nil, default_values: nil, description: nil, required: nil, unique: nil, type: :"field/number/unitless_float") ⇒ Object
Some parameter documentations has been truncated, see Moonbase::Models::Collections::FieldCreateParams::Field::FieldNumberUnitlessFloat for more details.
Parameters for creating a decimal number field.
|
|
# File 'lib/moonbase/models/collections/field_create_params.rb', line 444
|
Instance Attribute Details
#cardinality ⇒ Symbol, ...
Whether the field holds a single value (‘one`) or multiple values (`many`). Defaults to `one`.
418 419 |
# File 'lib/moonbase/models/collections/field_create_params.rb', line 418 optional :cardinality, enum: -> { Moonbase::Collections::FieldCreateParams::Field::FieldNumberUnitlessFloat::Cardinality } |
#default_values ⇒ Array<Moonbase::Models::FloatValue>?
424 |
# File 'lib/moonbase/models/collections/field_create_params.rb', line 424 optional :default_values, -> { Moonbase::Internal::Type::ArrayOf[Moonbase::FloatValue] } |
#description ⇒ String?
An optional description of the field’s purpose.
430 |
# File 'lib/moonbase/models/collections/field_create_params.rb', line 430 optional :description, String |
#name ⇒ String
The human-readable name for the field.
405 |
# File 'lib/moonbase/models/collections/field_create_params.rb', line 405 required :name, String |
#required ⇒ Boolean?
If ‘true`, items must have a value for this field. Defaults to `false`.
436 |
# File 'lib/moonbase/models/collections/field_create_params.rb', line 436 optional :required, Moonbase::Internal::Type::Boolean |
#type ⇒ Symbol, :"field/number/unitless_float"
The field type. Must be ‘field/number/unitless_float`.
411 |
# File 'lib/moonbase/models/collections/field_create_params.rb', line 411 required :type, const: :"field/number/unitless_float" |