Class: Moonbase::Models::CollectionPointer
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Moonbase::Models::CollectionPointer
- Defined in:
- lib/moonbase/models/collection_pointer.rb
Instance Attribute Summary collapse
-
#id ⇒ String
Unique identifier of the collection.
-
#ref ⇒ String
The stable, machine-readable reference identifier of the collection.
-
#type ⇒ Symbol, :collection
String representing the object’s type.
Instance Method Summary collapse
-
#initialize(id:, ref:, type: :collection) ⇒ Object
constructor
A lightweight reference to a ‘Collection`, containing the minimal information needed to identify it.
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(id:, ref:, type: :collection) ⇒ Object
A lightweight reference to a ‘Collection`, containing the minimal information needed to identify it.
|
|
# File 'lib/moonbase/models/collection_pointer.rb', line 24
|
Instance Attribute Details
#id ⇒ String
Unique identifier of the collection.
10 |
# File 'lib/moonbase/models/collection_pointer.rb', line 10 required :id, String |
#ref ⇒ String
The stable, machine-readable reference identifier of the collection.
16 |
# File 'lib/moonbase/models/collection_pointer.rb', line 16 required :ref, String |
#type ⇒ Symbol, :collection
String representing the object’s type. Always ‘collection` for this object.
22 |
# File 'lib/moonbase/models/collection_pointer.rb', line 22 required :type, const: :collection |