Class: Believe::Models::MedicalStaff
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Believe::Models::MedicalStaff
- Defined in:
- lib/believe/models/medical_staff.rb
Defined Under Namespace
Modules: MemberType
Instance Attribute Summary collapse
-
#character_id ⇒ String
ID of the character (references /characters/#id).
-
#id ⇒ String
Unique identifier for this team membership.
-
#license_number ⇒ String?
Professional license number.
-
#member_type ⇒ Symbol, ...
Discriminator field indicating this is medical staff.
-
#qualifications ⇒ Array<String>?
Medical qualifications and degrees.
-
#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.
Instance Method Summary collapse
-
#initialize(id:, character_id:, specialty:, team_id:, years_with_team:, license_number: nil, member_type: nil, qualifications: nil) ⇒ Object
constructor
Full medical staff model with ID.
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.
|
|
# File 'lib/believe/models/medical_staff.rb', line 54
|
Instance Attribute Details
#character_id ⇒ String
ID of the character (references /characters/#id)
16 |
# File 'lib/believe/models/medical_staff.rb', line 16 required :character_id, String |
#id ⇒ String
Unique identifier for this team membership
10 |
# File 'lib/believe/models/medical_staff.rb', line 10 required :id, String |
#license_number ⇒ String?
Professional license number
40 |
# File 'lib/believe/models/medical_staff.rb', line 40 optional :license_number, String, nil?: true |
#member_type ⇒ Symbol, ...
Discriminator field indicating this is medical staff
46 |
# File 'lib/believe/models/medical_staff.rb', line 46 optional :member_type, enum: -> { ::Believe::MedicalStaff::MemberType } |
#qualifications ⇒ Array<String>?
Medical qualifications and degrees
52 |
# File 'lib/believe/models/medical_staff.rb', line 52 optional :qualifications, ::Believe::Internal::Type::ArrayOf[String] |
#specialty ⇒ Symbol, ::Believe::Models::MedicalSpecialty
Medical specialty
22 |
# File 'lib/believe/models/medical_staff.rb', line 22 required :specialty, enum: -> { ::Believe::MedicalSpecialty } |
#team_id ⇒ String
ID of the team they belong to
28 |
# File 'lib/believe/models/medical_staff.rb', line 28 required :team_id, String |
#years_with_team ⇒ Integer
Number of years with the current team
34 |
# File 'lib/believe/models/medical_staff.rb', line 34 required :years_with_team, Integer |