Class: VericredClient::MedicalPlanUpdate
- Inherits:
-
Object
- Object
- VericredClient::MedicalPlanUpdate
- Defined in:
- lib/vericred_client/models/medical_plan_update.rb
Instance Attribute Summary collapse
-
#abortion_rider ⇒ Object
True if plan covers abortion when there is no public funding available.
-
#actively_marketed ⇒ Object
Indicates whether this plan is being actively marketed by the carrier.
-
#actuarial_value ⇒ Object
Percentage of total average costs for covered benefits that a plan will cover.
-
#adult_dental ⇒ Object
Adult dental string boolean.
-
#age29_rider ⇒ Object
True if the plan allows dependents up to age 29.
-
#audience ⇒ Object
The medical plan audience.
-
#benefits ⇒ Object
Medical Plan Benefits.
-
#benefits_summary_url ⇒ Object
Link to the summary of benefits and coverage (SBC) document.
-
#buy_link ⇒ Object
Link to a location to purchase the plan.
-
#chiropractic_services_bool ⇒ Object
Chiropractic services string boolean.
-
#coinsurance ⇒ Object
Standard cost share for most benefits.
-
#covered_ages ⇒ Object
allowed ages on the plan, possible values: allows adult-only, allows child-only, allows adult and child-only, child29, requires adult.
-
#display_name ⇒ Object
Display alias for the plan.
-
#dp_rider ⇒ Object
True if plan does not cover domestic partners.
-
#drug_formulary_url ⇒ Object
Link to the summary of drug benefits for the plan.
-
#embedded_deductible ⇒ Object
Is the individual deductible for each covered person, embedded in the family deductible.
-
#essential_health_benefits_percentage ⇒ Object
Percentage of essential plan benefits.
-
#external_id ⇒ Object
Medical Plan External Identifier.
-
#external_ids ⇒ Object
Medical Plan External Identifiers.
-
#fp_rider ⇒ Object
True if plan does not cover family planning.
-
#gated ⇒ Object
Does the plan’s network require a physician referral?.
-
#hsa_eligible ⇒ Object
Is the plan HSA eligible?.
-
#infertility_rider ⇒ Object
True if plan covers infertility treatment.
-
#issuer_vericred_id ⇒ Object
The issuer vericred id.
-
#key_benefits_complete ⇒ Object
Indicates whether the plan has meaningful descriptions for these benefits: individual_medical_deductible, family_medical_deductible, individual_medical_moop, family_medical_moop, primary_care_physician.
-
#level ⇒ Object
Plan metal grouping (e.g. platinum, gold, silver, etc).
-
#mail_order_rx ⇒ Object
Multiple of the standard Rx cost share for orders filled via mail order.
-
#market ⇒ Object
Market for plan.
-
#name ⇒ Object
The medical plan name.
-
#plan_ancestors ⇒ Object
A list of plan identifiers and years indicating the previous plans that the plan replaces.
-
#plan_calendar ⇒ Object
Are deductibles and MOOPs reset on Dec-31 ("calendar year"), 365 day(s) after enrollment date ("plan year"), or are both options available ("both")?.
-
#plan_market ⇒ Object
Market in which the plan is offered (on_marketplace, shop, etc).
-
#plan_type ⇒ Object
Category of the plan (e.g. EPO, HMO, PPO, POS, Indemnity, PACE, Medicare-Medicaid, HMO w/POS, Cost, FFS, MSA).
-
#private_exchange ⇒ Object
Plan private exchange.
-
#privileged_data ⇒ Object
TRUE if plan data is Privileged.
-
#sbc_name ⇒ Object
Name of the SBC.
-
#service_area_external_key ⇒ Object
The external identifier for the plan service area.
-
#skilled_nursing_facility_365 ⇒ Object
Does the plan cover full-time, year-round, nursing facilities?.
-
#source ⇒ Object
Source of the plan benefit data.
-
#state_code ⇒ Object
State code.
-
#telemedicine ⇒ Object
Indicates whether there is coverage for the remote delivery of medical benefits.
-
#year ⇒ Object
Plan year.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ MedicalPlanUpdate
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ MedicalPlanUpdate
Initializes the object
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 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1242 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?(:'abortion_rider') self.abortion_rider = attributes[:'abortion_rider'] end if attributes.has_key?(:'actively_marketed') self.actively_marketed = attributes[:'actively_marketed'] end if attributes.has_key?(:'actuarial_value') self.actuarial_value = attributes[:'actuarial_value'] end if attributes.has_key?(:'adult_dental') self.adult_dental = attributes[:'adult_dental'] end if attributes.has_key?(:'age29_rider') self.age29_rider = attributes[:'age29_rider'] end if attributes.has_key?(:'audience') self.audience = attributes[:'audience'] end if attributes.has_key?(:'benefits') self.benefits = attributes[:'benefits'] end if attributes.has_key?(:'benefits_summary_url') self.benefits_summary_url = attributes[:'benefits_summary_url'] end if attributes.has_key?(:'buy_link') self.buy_link = attributes[:'buy_link'] end if attributes.has_key?(:'chiropractic_services_bool') self.chiropractic_services_bool = attributes[:'chiropractic_services_bool'] end if attributes.has_key?(:'coinsurance') self.coinsurance = attributes[:'coinsurance'] end if attributes.has_key?(:'covered_ages') self.covered_ages = attributes[:'covered_ages'] end if attributes.has_key?(:'display_name') self.display_name = attributes[:'display_name'] end if attributes.has_key?(:'dp_rider') self.dp_rider = attributes[:'dp_rider'] end if attributes.has_key?(:'drug_formulary_url') self.drug_formulary_url = attributes[:'drug_formulary_url'] end if attributes.has_key?(:'embedded_deductible') self. = attributes[:'embedded_deductible'] end if attributes.has_key?(:'essential_health_benefits_percentage') self.essential_health_benefits_percentage = attributes[:'essential_health_benefits_percentage'] end if attributes.has_key?(:'external_id') self.external_id = attributes[:'external_id'] end if attributes.has_key?(:'external_ids') if (value = attributes[:'external_ids']).is_a?(Array) self.external_ids = value end end if attributes.has_key?(:'fp_rider') self.fp_rider = attributes[:'fp_rider'] end if attributes.has_key?(:'gated') self.gated = attributes[:'gated'] end if attributes.has_key?(:'hsa_eligible') self.hsa_eligible = attributes[:'hsa_eligible'] end if attributes.has_key?(:'infertility_rider') self.infertility_rider = attributes[:'infertility_rider'] end if attributes.has_key?(:'issuer_vericred_id') self.issuer_vericred_id = attributes[:'issuer_vericred_id'] end if attributes.has_key?(:'key_benefits_complete') self.key_benefits_complete = attributes[:'key_benefits_complete'] end if attributes.has_key?(:'level') self.level = attributes[:'level'] end if attributes.has_key?(:'mail_order_rx') self.mail_order_rx = attributes[:'mail_order_rx'] end if attributes.has_key?(:'market') self.market = attributes[:'market'] end if attributes.has_key?(:'name') self.name = attributes[:'name'] end if attributes.has_key?(:'plan_ancestors') if (value = attributes[:'plan_ancestors']).is_a?(Array) self.plan_ancestors = value end end if attributes.has_key?(:'plan_calendar') self.plan_calendar = attributes[:'plan_calendar'] end if attributes.has_key?(:'plan_market') self.plan_market = attributes[:'plan_market'] end if attributes.has_key?(:'plan_type') self.plan_type = attributes[:'plan_type'] end if attributes.has_key?(:'private_exchange') self.private_exchange = attributes[:'private_exchange'] end if attributes.has_key?(:'privileged_data') self.privileged_data = attributes[:'privileged_data'] end if attributes.has_key?(:'sbc_name') self.sbc_name = attributes[:'sbc_name'] end if attributes.has_key?(:'service_area_external_key') self.service_area_external_key = attributes[:'service_area_external_key'] end if attributes.has_key?(:'skilled_nursing_facility_365') self.skilled_nursing_facility_365 = attributes[:'skilled_nursing_facility_365'] end if attributes.has_key?(:'source') self.source = attributes[:'source'] end if attributes.has_key?(:'state_code') self.state_code = attributes[:'state_code'] end if attributes.has_key?(:'telemedicine') self.telemedicine = attributes[:'telemedicine'] end if attributes.has_key?(:'year') self.year = attributes[:'year'] end end |
Instance Attribute Details
#abortion_rider ⇒ Object
True if plan covers abortion when there is no public funding available
1018 1019 1020 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1018 def abortion_rider @abortion_rider end |
#actively_marketed ⇒ Object
Indicates whether this plan is being actively marketed by the carrier.
1021 1022 1023 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1021 def actively_marketed @actively_marketed end |
#actuarial_value ⇒ Object
Percentage of total average costs for covered benefits that a plan will cover.
1024 1025 1026 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1024 def actuarial_value @actuarial_value end |
#adult_dental ⇒ Object
Adult dental string boolean
1027 1028 1029 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1027 def adult_dental @adult_dental end |
#age29_rider ⇒ Object
True if the plan allows dependents up to age 29
1030 1031 1032 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1030 def age29_rider @age29_rider end |
#audience ⇒ Object
The medical plan audience
1033 1034 1035 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1033 def audience @audience end |
#benefits ⇒ Object
Medical Plan Benefits
1036 1037 1038 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1036 def benefits @benefits end |
#benefits_summary_url ⇒ Object
Link to the summary of benefits and coverage (SBC) document.
1039 1040 1041 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1039 def benefits_summary_url @benefits_summary_url end |
#buy_link ⇒ Object
Link to a location to purchase the plan.
1042 1043 1044 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1042 def buy_link @buy_link end |
#chiropractic_services_bool ⇒ Object
Chiropractic services string boolean
1045 1046 1047 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1045 def chiropractic_services_bool @chiropractic_services_bool end |
#coinsurance ⇒ Object
Standard cost share for most benefits
1048 1049 1050 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1048 def coinsurance @coinsurance end |
#covered_ages ⇒ Object
allowed ages on the plan, possible values: allows adult-only, allows child-only, allows adult and child-only, child29, requires adult
1051 1052 1053 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1051 def covered_ages @covered_ages end |
#display_name ⇒ Object
Display alias for the plan
1054 1055 1056 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1054 def display_name @display_name end |
#dp_rider ⇒ Object
True if plan does not cover domestic partners
1057 1058 1059 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1057 def dp_rider @dp_rider end |
#drug_formulary_url ⇒ Object
Link to the summary of drug benefits for the plan
1060 1061 1062 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1060 def drug_formulary_url @drug_formulary_url end |
#embedded_deductible ⇒ Object
Is the individual deductible for each covered person, embedded in the family deductible
1063 1064 1065 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1063 def @embedded_deductible end |
#essential_health_benefits_percentage ⇒ Object
Percentage of essential plan benefits
1066 1067 1068 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1066 def essential_health_benefits_percentage @essential_health_benefits_percentage end |
#external_id ⇒ Object
Medical Plan External Identifier
1069 1070 1071 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1069 def external_id @external_id end |
#external_ids ⇒ Object
Medical Plan External Identifiers
1072 1073 1074 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1072 def external_ids @external_ids end |
#fp_rider ⇒ Object
True if plan does not cover family planning
1075 1076 1077 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1075 def fp_rider @fp_rider end |
#gated ⇒ Object
Does the plan’s network require a physician referral?
1078 1079 1080 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1078 def gated @gated end |
#hsa_eligible ⇒ Object
Is the plan HSA eligible?
1081 1082 1083 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1081 def hsa_eligible @hsa_eligible end |
#infertility_rider ⇒ Object
True if plan covers infertility treatment
1084 1085 1086 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1084 def infertility_rider @infertility_rider end |
#issuer_vericred_id ⇒ Object
The issuer vericred id
1087 1088 1089 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1087 def issuer_vericred_id @issuer_vericred_id end |
#key_benefits_complete ⇒ Object
Indicates whether the plan has meaningful descriptions for these benefits: individual_medical_deductible, family_medical_deductible, individual_medical_moop, family_medical_moop, primary_care_physician.
1090 1091 1092 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1090 def key_benefits_complete @key_benefits_complete end |
#level ⇒ Object
Plan metal grouping (e.g. platinum, gold, silver, etc)
1093 1094 1095 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1093 def level @level end |
#mail_order_rx ⇒ Object
Multiple of the standard Rx cost share for orders filled via mail order
1096 1097 1098 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1096 def mail_order_rx @mail_order_rx end |
#market ⇒ Object
Market for plan
1099 1100 1101 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1099 def market @market end |
#name ⇒ Object
The medical plan name
1102 1103 1104 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1102 def name @name end |
#plan_ancestors ⇒ Object
A list of plan identifiers and years indicating the previous plans that the plan replaces
1105 1106 1107 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1105 def plan_ancestors @plan_ancestors end |
#plan_calendar ⇒ Object
Are deductibles and MOOPs reset on Dec-31 ("calendar year"), 365 day(s) after enrollment date ("plan year"), or are both options available ("both")?
1108 1109 1110 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1108 def plan_calendar @plan_calendar end |
#plan_market ⇒ Object
Market in which the plan is offered (on_marketplace, shop, etc)
1111 1112 1113 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1111 def plan_market @plan_market end |
#plan_type ⇒ Object
Category of the plan (e.g. EPO, HMO, PPO, POS, Indemnity, PACE, Medicare-Medicaid, HMO w/POS, Cost, FFS, MSA)
1114 1115 1116 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1114 def plan_type @plan_type end |
#private_exchange ⇒ Object
Plan private exchange
1117 1118 1119 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1117 def private_exchange @private_exchange end |
#privileged_data ⇒ Object
TRUE if plan data is Privileged
1120 1121 1122 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1120 def privileged_data @privileged_data end |
#sbc_name ⇒ Object
Name of the SBC
1123 1124 1125 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1123 def sbc_name @sbc_name end |
#service_area_external_key ⇒ Object
The external identifier for the plan service area
1126 1127 1128 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1126 def service_area_external_key @service_area_external_key end |
#skilled_nursing_facility_365 ⇒ Object
Does the plan cover full-time, year-round, nursing facilities?
1129 1130 1131 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1129 def skilled_nursing_facility_365 @skilled_nursing_facility_365 end |
#source ⇒ Object
Source of the plan benefit data
1132 1133 1134 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1132 def source @source end |
#state_code ⇒ Object
State code
1135 1136 1137 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1135 def state_code @state_code end |
#telemedicine ⇒ Object
Indicates whether there is coverage for the remote delivery of medical benefits
1138 1139 1140 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1138 def telemedicine @telemedicine end |
#year ⇒ Object
Plan year
1141 1142 1143 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1141 def year @year end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 1183 1184 1185 1186 1187 1188 1189 1190 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1145 def self.attribute_map { :'abortion_rider' => :'abortion_rider', :'actively_marketed' => :'actively_marketed', :'actuarial_value' => :'actuarial_value', :'adult_dental' => :'adult_dental', :'age29_rider' => :'age29_rider', :'audience' => :'audience', :'benefits' => :'benefits', :'benefits_summary_url' => :'benefits_summary_url', :'buy_link' => :'buy_link', :'chiropractic_services_bool' => :'chiropractic_services_bool', :'coinsurance' => :'coinsurance', :'covered_ages' => :'covered_ages', :'display_name' => :'display_name', :'dp_rider' => :'dp_rider', :'drug_formulary_url' => :'drug_formulary_url', :'embedded_deductible' => :'embedded_deductible', :'essential_health_benefits_percentage' => :'essential_health_benefits_percentage', :'external_id' => :'external_id', :'external_ids' => :'external_ids', :'fp_rider' => :'fp_rider', :'gated' => :'gated', :'hsa_eligible' => :'hsa_eligible', :'infertility_rider' => :'infertility_rider', :'issuer_vericred_id' => :'issuer_vericred_id', :'key_benefits_complete' => :'key_benefits_complete', :'level' => :'level', :'mail_order_rx' => :'mail_order_rx', :'market' => :'market', :'name' => :'name', :'plan_ancestors' => :'plan_ancestors', :'plan_calendar' => :'plan_calendar', :'plan_market' => :'plan_market', :'plan_type' => :'plan_type', :'private_exchange' => :'private_exchange', :'privileged_data' => :'privileged_data', :'sbc_name' => :'sbc_name', :'service_area_external_key' => :'service_area_external_key', :'skilled_nursing_facility_365' => :'skilled_nursing_facility_365', :'source' => :'source', :'state_code' => :'state_code', :'telemedicine' => :'telemedicine', :'year' => :'year' } end |
.swagger_types ⇒ Object
Attribute type mapping.
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 1236 1237 1238 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1193 def self.swagger_types { :'abortion_rider' => :'BOOLEAN', :'actively_marketed' => :'String', :'actuarial_value' => :'Float', :'adult_dental' => :'BOOLEAN', :'age29_rider' => :'BOOLEAN', :'audience' => :'String', :'benefits' => :'MedicalPlanBenefits', :'benefits_summary_url' => :'String', :'buy_link' => :'String', :'chiropractic_services_bool' => :'String', :'coinsurance' => :'Float', :'covered_ages' => :'String', :'display_name' => :'String', :'dp_rider' => :'BOOLEAN', :'drug_formulary_url' => :'String', :'embedded_deductible' => :'String', :'essential_health_benefits_percentage' => :'Float', :'external_id' => :'String', :'external_ids' => :'Array<PlanIdentifier>', :'fp_rider' => :'BOOLEAN', :'gated' => :'BOOLEAN', :'hsa_eligible' => :'BOOLEAN', :'infertility_rider' => :'BOOLEAN', :'issuer_vericred_id' => :'String', :'key_benefits_complete' => :'BOOLEAN', :'level' => :'String', :'mail_order_rx' => :'Float', :'market' => :'String', :'name' => :'String', :'plan_ancestors' => :'Array<PlanAncestor>', :'plan_calendar' => :'String', :'plan_market' => :'String', :'plan_type' => :'String', :'private_exchange' => :'String', :'privileged_data' => :'BOOLEAN', :'sbc_name' => :'String', :'service_area_external_key' => :'String', :'skilled_nursing_facility_365' => :'String', :'source' => :'String', :'state_code' => :'String', :'telemedicine' => :'String', :'year' => :'Integer' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 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 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1437 def ==(o) return true if self.equal?(o) self.class == o.class && abortion_rider == o.abortion_rider && actively_marketed == o.actively_marketed && actuarial_value == o.actuarial_value && adult_dental == o.adult_dental && age29_rider == o.age29_rider && audience == o.audience && benefits == o.benefits && benefits_summary_url == o.benefits_summary_url && buy_link == o.buy_link && chiropractic_services_bool == o.chiropractic_services_bool && coinsurance == o.coinsurance && covered_ages == o.covered_ages && display_name == o.display_name && dp_rider == o.dp_rider && drug_formulary_url == o.drug_formulary_url && == o. && essential_health_benefits_percentage == o.essential_health_benefits_percentage && external_id == o.external_id && external_ids == o.external_ids && fp_rider == o.fp_rider && gated == o.gated && hsa_eligible == o.hsa_eligible && infertility_rider == o.infertility_rider && issuer_vericred_id == o.issuer_vericred_id && key_benefits_complete == o.key_benefits_complete && level == o.level && mail_order_rx == o.mail_order_rx && market == o.market && name == o.name && plan_ancestors == o.plan_ancestors && plan_calendar == o.plan_calendar && plan_market == o.plan_market && plan_type == o.plan_type && private_exchange == o.private_exchange && privileged_data == o.privileged_data && sbc_name == o.sbc_name && service_area_external_key == o.service_area_external_key && skilled_nursing_facility_365 == o.skilled_nursing_facility_365 && source == o.source && state_code == o.state_code && telemedicine == o.telemedicine && year == o.year end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1520 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
1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1586 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
1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1499 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
1486 1487 1488 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1486 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
1492 1493 1494 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1492 def hash [abortion_rider, actively_marketed, actuarial_value, adult_dental, age29_rider, audience, benefits, benefits_summary_url, buy_link, chiropractic_services_bool, coinsurance, covered_ages, display_name, dp_rider, drug_formulary_url, , essential_health_benefits_percentage, external_id, external_ids, fp_rider, gated, hsa_eligible, infertility_rider, issuer_vericred_id, key_benefits_complete, level, mail_order_rx, market, name, plan_ancestors, plan_calendar, plan_market, plan_type, private_exchange, privileged_data, sbc_name, service_area_external_key, skilled_nursing_facility_365, source, state_code, telemedicine, year].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
1424 1425 1426 1427 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1424 def list_invalid_properties invalid_properties = Array.new return invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
1566 1567 1568 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1566 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
1572 1573 1574 1575 1576 1577 1578 1579 1580 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1572 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_s ⇒ String
Returns the string representation of the object
1560 1561 1562 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1560 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
1431 1432 1433 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1431 def valid? return true end |