Class: Believe::Models::MedicalStaff

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/believe/models/medical_staff.rb

Defined Under Namespace

Modules: MemberType

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(id:, character_id:, specialty:, team_id:, years_with_team:, license_number: nil, member_type: nil, qualifications: nil) ⇒ Object

Full medical staff model with ID.

Parameters:

  • id (String)

    Unique identifier for this team membership

  • character_id (String)

    ID of the character (references /characters/#id)

  • specialty (Symbol, ::Believe::Models::MedicalSpecialty)

    Medical specialty

  • team_id (String)

    ID of the team they belong to

  • years_with_team (Integer)

    Number of years with the current team

  • license_number (String, nil) (defaults to: nil)

    Professional license number

  • member_type (Symbol, ::Believe::Models::MedicalStaff::MemberType) (defaults to: nil)

    Discriminator field indicating this is medical staff

  • qualifications (Array<String>) (defaults to: nil)

    Medical qualifications and degrees



# File 'lib/believe/models/medical_staff.rb', line 54

Instance Attribute Details

#character_idString

ID of the character (references /characters/#id)

Returns:

  • (String)


16
# File 'lib/believe/models/medical_staff.rb', line 16

required :character_id, String

#idString

Unique identifier for this team membership

Returns:

  • (String)


10
# File 'lib/believe/models/medical_staff.rb', line 10

required :id, String

#license_numberString?

Professional license number

Returns:

  • (String, nil)


40
# File 'lib/believe/models/medical_staff.rb', line 40

optional :license_number, String, nil?: true

#member_typeSymbol, ...

Discriminator field indicating this is medical staff



46
# File 'lib/believe/models/medical_staff.rb', line 46

optional :member_type, enum: -> { ::Believe::MedicalStaff::MemberType }

#qualificationsArray<String>?

Medical qualifications and degrees

Returns:

  • (Array<String>, nil)


52
# File 'lib/believe/models/medical_staff.rb', line 52

optional :qualifications, ::Believe::Internal::Type::ArrayOf[String]

#specialtySymbol, ::Believe::Models::MedicalSpecialty

Medical specialty



22
# File 'lib/believe/models/medical_staff.rb', line 22

required :specialty, enum: -> { ::Believe::MedicalSpecialty }

#team_idString

ID of the team they belong to

Returns:

  • (String)


28
# File 'lib/believe/models/medical_staff.rb', line 28

required :team_id, String

#years_with_teamInteger

Number of years with the current team

Returns:

  • (Integer)


34
# File 'lib/believe/models/medical_staff.rb', line 34

required :years_with_team, Integer