Class: Cadenya::Models::SubjectInfo

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cadenya/models/subject_info.rb,
sig/cadenya/models/subject_info.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

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(objective_count: nil, tenant: nil) ⇒ Object

Some parameter documentations has been truncated, see Cadenya::Models::SubjectInfo for more details.

SubjectInfo provides read-only server-derived data about a subject.

Parameters:

  • objective_count (Integer) (defaults to: nil)

    Number of objectives associated with this subject.

  • tenant (Cadenya::Models::TenantReference) (defaults to: nil)

    TenantReference is the read-only echo of a resource's tenant association,



# File 'lib/cadenya/models/subject_info.rb', line 21

Instance Attribute Details

#objective_countInteger? (readonly)

Returns the value of attribute objective_count.

Returns:

  • (Integer, nil)


7
8
9
# File 'sig/cadenya/models/subject_info.rbs', line 7

def objective_count
  @objective_count
end

#tenantCadenya::TenantReference? (readonly)

Returns the value of attribute tenant.

Returns:



11
12
13
# File 'sig/cadenya/models/subject_info.rbs', line 11

def tenant
  @tenant
end

Instance Method Details

#objective_count=Integer (readonly)

Parameters:

  • (Integer)

Returns:

  • (Integer)


9
# File 'sig/cadenya/models/subject_info.rbs', line 9

def objective_count=: (Integer) -> Integer

#tenant=Cadenya::TenantReference (readonly)



13
# File 'sig/cadenya/models/subject_info.rbs', line 13

def tenant=: (Cadenya::TenantReference) -> Cadenya::TenantReference

#to_hash{

Returns:

  • ({)


20
# File 'sig/cadenya/models/subject_info.rbs', line 20

def to_hash: -> {