Class: VericredClient::MedicalPlanBenefits

Inherits:
Object
  • Object
show all
Defined in:
lib/vericred_client/models/medical_plan_benefits.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ MedicalPlanBenefits

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1239

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}

  if attributes.has_key?(:'adult_dental')
    self.adult_dental = attributes[:'adult_dental']
  end

  if attributes.has_key?(:'ambulance')
    self.ambulance = attributes[:'ambulance']
  end

  if attributes.has_key?(:'child_dental')
    self.child_dental = attributes[:'child_dental']
  end

  if attributes.has_key?(:'child_eye_exam')
    self.child_eye_exam = attributes[:'child_eye_exam']
  end

  if attributes.has_key?(:'child_eyewear')
    self.child_eyewear = attributes[:'child_eyewear']
  end

  if attributes.has_key?(:'chiropractic_services')
    self.chiropractic_services = attributes[:'chiropractic_services']
  end

  if attributes.has_key?(:'diagnostic_test')
    self.diagnostic_test = attributes[:'diagnostic_test']
  end

  if attributes.has_key?(:'durable_medical_equipment')
    self.durable_medical_equipment = attributes[:'durable_medical_equipment']
  end

  if attributes.has_key?(:'emergency_room')
    self.emergency_room = attributes[:'emergency_room']
  end

  if attributes.has_key?(:'family_drug_deductible')
    self.family_drug_deductible = attributes[:'family_drug_deductible']
  end

  if attributes.has_key?(:'family_drug_moop')
    self.family_drug_moop = attributes[:'family_drug_moop']
  end

  if attributes.has_key?(:'family_medical_deductible')
    self.family_medical_deductible = attributes[:'family_medical_deductible']
  end

  if attributes.has_key?(:'family_medical_moop')
    self.family_medical_moop = attributes[:'family_medical_moop']
  end

  if attributes.has_key?(:'generic_drugs')
    self.generic_drugs = attributes[:'generic_drugs']
  end

  if attributes.has_key?(:'habilitation_services')
    self.habilitation_services = attributes[:'habilitation_services']
  end

  if attributes.has_key?(:'home_health_care')
    self.home_health_care = attributes[:'home_health_care']
  end

  if attributes.has_key?(:'hospice_service')
    self.hospice_service = attributes[:'hospice_service']
  end

  if attributes.has_key?(:'imaging_center')
    self.imaging_center = attributes[:'imaging_center']
  end

  if attributes.has_key?(:'imaging_physician')
    self.imaging_physician = attributes[:'imaging_physician']
  end

  if attributes.has_key?(:'individual_drug_deductible')
    self.individual_drug_deductible = attributes[:'individual_drug_deductible']
  end

  if attributes.has_key?(:'individual_drug_moop')
    self.individual_drug_moop = attributes[:'individual_drug_moop']
  end

  if attributes.has_key?(:'individual_medical_deductible')
    self.individual_medical_deductible = attributes[:'individual_medical_deductible']
  end

  if attributes.has_key?(:'individual_medical_moop')
    self.individual_medical_moop = attributes[:'individual_medical_moop']
  end

  if attributes.has_key?(:'inpatient_birth')
    self.inpatient_birth = attributes[:'inpatient_birth']
  end

  if attributes.has_key?(:'inpatient_facility')
    self.inpatient_facility = attributes[:'inpatient_facility']
  end

  if attributes.has_key?(:'inpatient_mental_health')
    self.inpatient_mental_health = attributes[:'inpatient_mental_health']
  end

  if attributes.has_key?(:'inpatient_physician')
    self.inpatient_physician = attributes[:'inpatient_physician']
  end

  if attributes.has_key?(:'inpatient_substance')
    self.inpatient_substance = attributes[:'inpatient_substance']
  end

  if attributes.has_key?(:'lab_test')
    self.lab_test = attributes[:'lab_test']
  end

  if attributes.has_key?(:'non_preferred_brand_drugs')
    self.non_preferred_brand_drugs = attributes[:'non_preferred_brand_drugs']
  end

  if attributes.has_key?(:'nonpreferred_generic_drug_share')
    self.nonpreferred_generic_drug_share = attributes[:'nonpreferred_generic_drug_share']
  end

  if attributes.has_key?(:'nonpreferred_specialty_drug_share')
    self.nonpreferred_specialty_drug_share = attributes[:'nonpreferred_specialty_drug_share']
  end

  if attributes.has_key?(:'outpatient_ambulatory_care_center')
    self.outpatient_ambulatory_care_center = attributes[:'outpatient_ambulatory_care_center']
  end

  if attributes.has_key?(:'outpatient_facility')
    self.outpatient_facility = attributes[:'outpatient_facility']
  end

  if attributes.has_key?(:'outpatient_mental_health')
    self.outpatient_mental_health = attributes[:'outpatient_mental_health']
  end

  if attributes.has_key?(:'outpatient_physician')
    self.outpatient_physician = attributes[:'outpatient_physician']
  end

  if attributes.has_key?(:'outpatient_substance')
    self.outpatient_substance = attributes[:'outpatient_substance']
  end

  if attributes.has_key?(:'postnatal_care')
    self.postnatal_care = attributes[:'postnatal_care']
  end

  if attributes.has_key?(:'preferred_brand_drugs')
    self.preferred_brand_drugs = attributes[:'preferred_brand_drugs']
  end

  if attributes.has_key?(:'prenatal_care')
    self.prenatal_care = attributes[:'prenatal_care']
  end

  if attributes.has_key?(:'preventative_care')
    self.preventative_care = attributes[:'preventative_care']
  end

  if attributes.has_key?(:'primary_care_physician')
    self.primary_care_physician = attributes[:'primary_care_physician']
  end

  if attributes.has_key?(:'rehabilitation_services')
    self.rehabilitation_services = attributes[:'rehabilitation_services']
  end

  if attributes.has_key?(:'skilled_nursing')
    self.skilled_nursing = attributes[:'skilled_nursing']
  end

  if attributes.has_key?(:'specialist')
    self.specialist = attributes[:'specialist']
  end

  if attributes.has_key?(:'specialty_drugs')
    self.specialty_drugs = attributes[:'specialty_drugs']
  end

  if attributes.has_key?(:'urgent_care')
    self.urgent_care = attributes[:'urgent_care']
  end

end

Instance Attribute Details

#adult_dentalObject

Adult Dental benefits string



990
991
992
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 990

def adult_dental
  @adult_dental
end

#ambulanceObject

Ambulance benefits string



993
994
995
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 993

def ambulance
  @ambulance
end

#child_dentalObject

Child Dental benefits string



996
997
998
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 996

def child_dental
  @child_dental
end

#child_eye_examObject

Child Eye Exam benefits string



999
1000
1001
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 999

def child_eye_exam
  @child_eye_exam
end

#child_eyewearObject

Child Eyewear benefits string



1002
1003
1004
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1002

def child_eyewear
  @child_eyewear
end

#chiropractic_servicesObject

Chiropractic Services benefits string



1005
1006
1007
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1005

def chiropractic_services
  @chiropractic_services
end

#diagnostic_testObject

Diagnostic Test benefits string



1008
1009
1010
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1008

def diagnostic_test
  @diagnostic_test
end

#durable_medical_equipmentObject

Durable Medical Equipment benefits string



1011
1012
1013
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1011

def durable_medical_equipment
  @durable_medical_equipment
end

#emergency_roomObject

Emergency Room benefits string



1014
1015
1016
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1014

def emergency_room
  @emergency_room
end

#family_drug_deductibleObject

Family Drug Deductible benefits string



1017
1018
1019
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1017

def family_drug_deductible
  @family_drug_deductible
end

#family_drug_moopObject

Family Drug Moop benefits string



1020
1021
1022
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1020

def family_drug_moop
  @family_drug_moop
end

#family_medical_deductibleObject

Family Medical Deductible benefits string



1023
1024
1025
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1023

def family_medical_deductible
  @family_medical_deductible
end

#family_medical_moopObject

Family Medical Moop benefits string



1026
1027
1028
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1026

def family_medical_moop
  @family_medical_moop
end

#generic_drugsObject

Generic Drugs benefits string



1029
1030
1031
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1029

def generic_drugs
  @generic_drugs
end

#habilitation_servicesObject

Habilitation Services benefits string



1032
1033
1034
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1032

def habilitation_services
  @habilitation_services
end

#home_health_careObject

Home Health Care benefits string



1035
1036
1037
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1035

def home_health_care
  @home_health_care
end

#hospice_serviceObject

Hospice Service benefits string



1038
1039
1040
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1038

def hospice_service
  @hospice_service
end

#imaging_centerObject

Imaging Center benefits string



1041
1042
1043
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1041

def imaging_center
  @imaging_center
end

#imaging_physicianObject

Imaging PHysician benefits string



1044
1045
1046
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1044

def imaging_physician
  @imaging_physician
end

#individual_drug_deductibleObject

Individual Drug Deductible benefits string



1047
1048
1049
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1047

def individual_drug_deductible
  @individual_drug_deductible
end

#individual_drug_moopObject

Individual Drug Moop benefits string



1050
1051
1052
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1050

def individual_drug_moop
  @individual_drug_moop
end

#individual_medical_deductibleObject

Individual Medical Deductible benefits string



1053
1054
1055
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1053

def individual_medical_deductible
  @individual_medical_deductible
end

#individual_medical_moopObject

Individual Medical Moop benefits string



1056
1057
1058
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1056

def individual_medical_moop
  @individual_medical_moop
end

#inpatient_birthObject

Inpatient Birth benefits string



1059
1060
1061
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1059

def inpatient_birth
  @inpatient_birth
end

#inpatient_facilityObject

Inpatient Facility benefits string



1062
1063
1064
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1062

def inpatient_facility
  @inpatient_facility
end

#inpatient_mental_healthObject

Inpatient Mental Health benefits string



1065
1066
1067
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1065

def inpatient_mental_health
  @inpatient_mental_health
end

#inpatient_physicianObject

Inpatient Physician benefits string



1068
1069
1070
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1068

def inpatient_physician
  @inpatient_physician
end

#inpatient_substanceObject

Inpatient Substance benefits string



1071
1072
1073
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1071

def inpatient_substance
  @inpatient_substance
end

#lab_testObject

Lab Test benefits string



1074
1075
1076
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1074

def lab_test
  @lab_test
end

#non_preferred_brand_drugsObject

Non Preferred Brand_drugs benefits string



1077
1078
1079
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1077

def non_preferred_brand_drugs
  @non_preferred_brand_drugs
end

#nonpreferred_generic_drug_shareObject

Non Preferred Generic_drug_share benefits string



1080
1081
1082
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1080

def nonpreferred_generic_drug_share
  @nonpreferred_generic_drug_share
end

#nonpreferred_specialty_drug_shareObject

Non Preferred Specialty Drug Share benefits string



1083
1084
1085
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1083

def nonpreferred_specialty_drug_share
  @nonpreferred_specialty_drug_share
end

#outpatient_ambulatory_care_centerObject

Outpatient Ambulatory Care Center benefits string



1086
1087
1088
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1086

def outpatient_ambulatory_care_center
  @outpatient_ambulatory_care_center
end

#outpatient_facilityObject

Outpatient Hospital benefits string



1089
1090
1091
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1089

def outpatient_facility
  @outpatient_facility
end

#outpatient_mental_healthObject

Outpatient Mental Health benefits string



1092
1093
1094
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1092

def outpatient_mental_health
  @outpatient_mental_health
end

#outpatient_physicianObject

outpatient Physician benefits string



1095
1096
1097
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1095

def outpatient_physician
  @outpatient_physician
end

#outpatient_substanceObject

Outpatient Substance benefits string



1098
1099
1100
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1098

def outpatient_substance
  @outpatient_substance
end

#postnatal_careObject

Postnatal Care benefits string



1101
1102
1103
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1101

def postnatal_care
  @postnatal_care
end

#preferred_brand_drugsObject

Preferred Brand Drugs benefits string



1104
1105
1106
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1104

def preferred_brand_drugs
  @preferred_brand_drugs
end

#prenatal_careObject

Prenatal Care benefits string



1107
1108
1109
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1107

def prenatal_care
  @prenatal_care
end

#preventative_careObject

Preventative Care benefits string



1110
1111
1112
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1110

def preventative_care
  @preventative_care
end

#primary_care_physicianObject

Primary Care Physician benefits string



1113
1114
1115
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1113

def primary_care_physician
  @primary_care_physician
end

#rehabilitation_servicesObject

Rehabilitation Services benefits string



1116
1117
1118
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1116

def rehabilitation_services
  @rehabilitation_services
end

#skilled_nursingObject

Skilled Nursing benefits string



1119
1120
1121
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1119

def skilled_nursing
  @skilled_nursing
end

#specialistObject

Specialist benefits string



1122
1123
1124
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1122

def specialist
  @specialist
end

#specialty_drugsObject

Specialty Drugs benefits string



1125
1126
1127
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1125

def specialty_drugs
  @specialty_drugs
end

#urgent_careObject

Urgent Care benefits string



1128
1129
1130
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1128

def urgent_care
  @urgent_care
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1132

def self.attribute_map
  {
    :'adult_dental' => :'adult_dental',
    :'ambulance' => :'ambulance',
    :'child_dental' => :'child_dental',
    :'child_eye_exam' => :'child_eye_exam',
    :'child_eyewear' => :'child_eyewear',
    :'chiropractic_services' => :'chiropractic_services',
    :'diagnostic_test' => :'diagnostic_test',
    :'durable_medical_equipment' => :'durable_medical_equipment',
    :'emergency_room' => :'emergency_room',
    :'family_drug_deductible' => :'family_drug_deductible',
    :'family_drug_moop' => :'family_drug_moop',
    :'family_medical_deductible' => :'family_medical_deductible',
    :'family_medical_moop' => :'family_medical_moop',
    :'generic_drugs' => :'generic_drugs',
    :'habilitation_services' => :'habilitation_services',
    :'home_health_care' => :'home_health_care',
    :'hospice_service' => :'hospice_service',
    :'imaging_center' => :'imaging_center',
    :'imaging_physician' => :'imaging_physician',
    :'individual_drug_deductible' => :'individual_drug_deductible',
    :'individual_drug_moop' => :'individual_drug_moop',
    :'individual_medical_deductible' => :'individual_medical_deductible',
    :'individual_medical_moop' => :'individual_medical_moop',
    :'inpatient_birth' => :'inpatient_birth',
    :'inpatient_facility' => :'inpatient_facility',
    :'inpatient_mental_health' => :'inpatient_mental_health',
    :'inpatient_physician' => :'inpatient_physician',
    :'inpatient_substance' => :'inpatient_substance',
    :'lab_test' => :'lab_test',
    :'non_preferred_brand_drugs' => :'non_preferred_brand_drugs',
    :'nonpreferred_generic_drug_share' => :'nonpreferred_generic_drug_share',
    :'nonpreferred_specialty_drug_share' => :'nonpreferred_specialty_drug_share',
    :'outpatient_ambulatory_care_center' => :'outpatient_ambulatory_care_center',
    :'outpatient_facility' => :'outpatient_facility',
    :'outpatient_mental_health' => :'outpatient_mental_health',
    :'outpatient_physician' => :'outpatient_physician',
    :'outpatient_substance' => :'outpatient_substance',
    :'postnatal_care' => :'postnatal_care',
    :'preferred_brand_drugs' => :'preferred_brand_drugs',
    :'prenatal_care' => :'prenatal_care',
    :'preventative_care' => :'preventative_care',
    :'primary_care_physician' => :'primary_care_physician',
    :'rehabilitation_services' => :'rehabilitation_services',
    :'skilled_nursing' => :'skilled_nursing',
    :'specialist' => :'specialist',
    :'specialty_drugs' => :'specialty_drugs',
    :'urgent_care' => :'urgent_care'
  }
end

.swagger_typesObject

Attribute type mapping.



1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1185

def self.swagger_types
  {
    :'adult_dental' => :'String',
    :'ambulance' => :'String',
    :'child_dental' => :'String',
    :'child_eye_exam' => :'String',
    :'child_eyewear' => :'String',
    :'chiropractic_services' => :'String',
    :'diagnostic_test' => :'String',
    :'durable_medical_equipment' => :'String',
    :'emergency_room' => :'String',
    :'family_drug_deductible' => :'String',
    :'family_drug_moop' => :'String',
    :'family_medical_deductible' => :'String',
    :'family_medical_moop' => :'String',
    :'generic_drugs' => :'String',
    :'habilitation_services' => :'String',
    :'home_health_care' => :'String',
    :'hospice_service' => :'String',
    :'imaging_center' => :'String',
    :'imaging_physician' => :'String',
    :'individual_drug_deductible' => :'String',
    :'individual_drug_moop' => :'String',
    :'individual_medical_deductible' => :'String',
    :'individual_medical_moop' => :'String',
    :'inpatient_birth' => :'String',
    :'inpatient_facility' => :'String',
    :'inpatient_mental_health' => :'String',
    :'inpatient_physician' => :'String',
    :'inpatient_substance' => :'String',
    :'lab_test' => :'String',
    :'non_preferred_brand_drugs' => :'String',
    :'nonpreferred_generic_drug_share' => :'String',
    :'nonpreferred_specialty_drug_share' => :'String',
    :'outpatient_ambulatory_care_center' => :'String',
    :'outpatient_facility' => :'String',
    :'outpatient_mental_health' => :'String',
    :'outpatient_physician' => :'String',
    :'outpatient_substance' => :'String',
    :'postnatal_care' => :'String',
    :'preferred_brand_drugs' => :'String',
    :'prenatal_care' => :'String',
    :'preventative_care' => :'String',
    :'primary_care_physician' => :'String',
    :'rehabilitation_services' => :'String',
    :'skilled_nursing' => :'String',
    :'specialist' => :'String',
    :'specialty_drugs' => :'String',
    :'urgent_care' => :'String'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1450

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      adult_dental == o.adult_dental &&
      ambulance == o.ambulance &&
      child_dental == o.child_dental &&
      child_eye_exam == o.child_eye_exam &&
      child_eyewear == o.child_eyewear &&
      chiropractic_services == o.chiropractic_services &&
      diagnostic_test == o.diagnostic_test &&
      durable_medical_equipment == o.durable_medical_equipment &&
      emergency_room == o.emergency_room &&
      family_drug_deductible == o.family_drug_deductible &&
      family_drug_moop == o.family_drug_moop &&
      family_medical_deductible == o.family_medical_deductible &&
      family_medical_moop == o.family_medical_moop &&
      generic_drugs == o.generic_drugs &&
      habilitation_services == o.habilitation_services &&
      home_health_care == o.home_health_care &&
      hospice_service == o.hospice_service &&
      imaging_center == o.imaging_center &&
      imaging_physician == o.imaging_physician &&
      individual_drug_deductible == o.individual_drug_deductible &&
      individual_drug_moop == o.individual_drug_moop &&
      individual_medical_deductible == o.individual_medical_deductible &&
      individual_medical_moop == o.individual_medical_moop &&
      inpatient_birth == o.inpatient_birth &&
      inpatient_facility == o.inpatient_facility &&
      inpatient_mental_health == o.inpatient_mental_health &&
      inpatient_physician == o.inpatient_physician &&
      inpatient_substance == o.inpatient_substance &&
      lab_test == o.lab_test &&
      non_preferred_brand_drugs == o.non_preferred_brand_drugs &&
      nonpreferred_generic_drug_share == o.nonpreferred_generic_drug_share &&
      nonpreferred_specialty_drug_share == o.nonpreferred_specialty_drug_share &&
      outpatient_ambulatory_care_center == o.outpatient_ambulatory_care_center &&
      outpatient_facility == o.outpatient_facility &&
      outpatient_mental_health == o.outpatient_mental_health &&
      outpatient_physician == o.outpatient_physician &&
      outpatient_substance == o.outpatient_substance &&
      postnatal_care == o.postnatal_care &&
      preferred_brand_drugs == o.preferred_brand_drugs &&
      prenatal_care == o.prenatal_care &&
      preventative_care == o.preventative_care &&
      primary_care_physician == o.primary_care_physician &&
      rehabilitation_services == o.rehabilitation_services &&
      skilled_nursing == o.skilled_nursing &&
      specialist == o.specialist &&
      specialty_drugs == o.specialty_drugs &&
      urgent_care == o.urgent_care
end

#_deserialize(type, value) ⇒ Object

Deserializes the data based on type

Parameters:

  • string

    type Data type

  • string

    value Value to be deserialized

Returns:

  • (Object)

    Deserialized data



1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1538

def _deserialize(type, value)
  case type.to_sym
  when :DateTime
    DateTime.parse(value)
  when :Date
    Date.parse(value)
  when :String
    value.to_s
  when :Integer
    value.to_i
  when :Float
    value.to_f
  when :BOOLEAN
    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  when /\AArray<(?<inner_type>.+)>\z/
    inner_type = Regexp.last_match[:inner_type]
    value.map { |v| _deserialize(inner_type, v) }
  when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
    k_type = Regexp.last_match[:k_type]
    v_type = Regexp.last_match[:v_type]
    {}.tap do |hash|
      value.each do |k, v|
        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
      end
    end
  else # model
    temp_model = VericredClient.const_get(type).new
    temp_model.build_from_hash(value)
  end
end

#_to_hash(value) ⇒ Hash

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash



1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1604

def _to_hash(value)
  if value.is_a?(Array)
    value.compact.map{ |v| _to_hash(v) }
  elsif value.is_a?(Hash)
    {}.tap do |hash|
      value.each { |k, v| hash[k] = _to_hash(v) }
    end
  elsif value.respond_to? :to_hash
    value.to_hash
  else
    value
  end
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1517

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  self.class.swagger_types.each_pair do |key, type|
    if type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
    end # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


1504
1505
1506
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1504

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



1510
1511
1512
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1510

def hash
  [adult_dental, ambulance, child_dental, child_eye_exam, child_eyewear, chiropractic_services, diagnostic_test, durable_medical_equipment, emergency_room, family_drug_deductible, family_drug_moop, family_medical_deductible, family_medical_moop, generic_drugs, habilitation_services, home_health_care, hospice_service, imaging_center, imaging_physician, individual_drug_deductible, individual_drug_moop, individual_medical_deductible, individual_medical_moop, inpatient_birth, inpatient_facility, inpatient_mental_health, inpatient_physician, inpatient_substance, lab_test, non_preferred_brand_drugs, nonpreferred_generic_drug_share, nonpreferred_specialty_drug_share, outpatient_ambulatory_care_center, outpatient_facility, outpatient_mental_health, outpatient_physician, outpatient_substance, postnatal_care, preferred_brand_drugs, prenatal_care, preventative_care, primary_care_physician, rehabilitation_services, skilled_nursing, specialist, specialty_drugs, urgent_care].hash
end

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properies with the reasons



1437
1438
1439
1440
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1437

def list_invalid_properties
  invalid_properties = Array.new
  return invalid_properties
end

#to_bodyHash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash)

    Returns the object in the form of hash



1584
1585
1586
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1584

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



1590
1591
1592
1593
1594
1595
1596
1597
1598
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1590

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    next if value.nil?
    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



1578
1579
1580
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1578

def to_s
  to_hash.to_s
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



1444
1445
1446
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 1444

def valid?
  return true
end