Class: Dataleon::Models::Individual::Property
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dataleon::Models::Individual::Property
- Defined in:
- lib/dataleon/models/individual.rb,
sig/dataleon/models/individual.rbs
Instance Attribute Summary collapse
-
#name ⇒ String?
Name/key of the property.
-
#type ⇒ String?
Data type of the property value.
-
#value ⇒ String?
Value associated with the property name.
Instance Method Summary collapse
-
#initialize ⇒ Property
constructor
A new instance of Property.
- #to_hash ⇒ { name: String, type: String, value: String }
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 ⇒ Property
Returns a new instance of Property.
518 |
# File 'sig/dataleon/models/individual.rbs', line 518
def initialize: (?name: String, ?type: String, ?value: String) -> void
|
Instance Attribute Details
#name ⇒ String?
Name/key of the property.
550 |
# File 'lib/dataleon/models/individual.rb', line 550 optional :name, String |
#type ⇒ String?
Data type of the property value.
556 |
# File 'lib/dataleon/models/individual.rb', line 556 optional :type, String |
#value ⇒ String?
Value associated with the property name.
562 |
# File 'lib/dataleon/models/individual.rb', line 562 optional :value, String |
Instance Method Details
#to_hash ⇒ { name: String, type: String, value: String }
520 |
# File 'sig/dataleon/models/individual.rbs', line 520
def to_hash: -> { name: String, type: String, value: String }
|