Class: VericredClient::MedicalPlanUpdate
- Inherits:
-
Object
- Object
- VericredClient::MedicalPlanUpdate
- Defined in:
- lib/vericred_client/models/medical_plan_update.rb
Instance Attribute Summary collapse
-
#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.
-
#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.
-
#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.
-
#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.
-
#family_tier ⇒ Object
True if plan is in a fixed family tier state.
-
#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?.
-
#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_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.
-
#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
1184 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 1236 1237 1238 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 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1184 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?(:'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?(:'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?(:'coinsurance') self.coinsurance = attributes[:'coinsurance'] end if attributes.has_key?(:'covered_ages') self.covered_ages = attributes[:'covered_ages'] 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?(:'family_tier') self.family_tier = attributes[:'family_tier'] 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?(:'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_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?(:'year') self.year = attributes[:'year'] end end |
Instance Attribute Details
#actively_marketed ⇒ Object
Indicates whether this plan is being actively marketed by the carrier.
990 991 992 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 990 def actively_marketed @actively_marketed end |
#actuarial_value ⇒ Object
Percentage of total average costs for covered benefits that a plan will cover.
993 994 995 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 993 def actuarial_value @actuarial_value end |
#age29_rider ⇒ Object
True if the plan allows dependents up to age 29
996 997 998 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 996 def age29_rider @age29_rider end |
#audience ⇒ Object
The medical plan audience
999 1000 1001 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 999 def audience @audience end |
#benefits ⇒ Object
Medical Plan Benefits
1002 1003 1004 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1002 def benefits @benefits end |
#benefits_summary_url ⇒ Object
Link to the summary of benefits and coverage (SBC) document.
1005 1006 1007 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1005 def benefits_summary_url @benefits_summary_url end |
#buy_link ⇒ Object
Link to a location to purchase the plan.
1008 1009 1010 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1008 def buy_link @buy_link end |
#coinsurance ⇒ Object
Standard cost share for most benefits
1011 1012 1013 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1011 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
1014 1015 1016 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1014 def covered_ages @covered_ages end |
#dp_rider ⇒ Object
True if plan does not cover domestic partners
1017 1018 1019 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1017 def dp_rider @dp_rider end |
#drug_formulary_url ⇒ Object
Link to the summary of drug benefits for the plan
1020 1021 1022 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1020 def drug_formulary_url @drug_formulary_url end |
#embedded_deductible ⇒ Object
Is the individual deductible for each covered person, embedded in the family deductible
1023 1024 1025 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1023 def @embedded_deductible end |
#essential_health_benefits_percentage ⇒ Object
Percentage of essential plan benefits
1026 1027 1028 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1026 def essential_health_benefits_percentage @essential_health_benefits_percentage end |
#external_id ⇒ Object
Medical Plan External Identifier
1029 1030 1031 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1029 def external_id @external_id end |
#external_ids ⇒ Object
Medical Plan External Identifiers
1032 1033 1034 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1032 def external_ids @external_ids end |
#family_tier ⇒ Object
True if plan is in a fixed family tier state
1035 1036 1037 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1035 def family_tier @family_tier end |
#fp_rider ⇒ Object
True if plan does not cover family planning
1038 1039 1040 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1038 def fp_rider @fp_rider end |
#gated ⇒ Object
Does the plan’s network require a physician referral?
1041 1042 1043 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1041 def gated @gated end |
#hsa_eligible ⇒ Object
Is the plan HSA eligible?
1044 1045 1046 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1044 def hsa_eligible @hsa_eligible end |
#issuer_vericred_id ⇒ Object
The issuer vericred id
1047 1048 1049 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1047 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.
1050 1051 1052 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1050 def key_benefits_complete @key_benefits_complete end |
#level ⇒ Object
Plan metal grouping (e.g. platinum, gold, silver, etc)
1053 1054 1055 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1053 def level @level end |
#mail_order_rx ⇒ Object
Multiple of the standard Rx cost share for orders filled via mail order
1056 1057 1058 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1056 def mail_order_rx @mail_order_rx end |
#market ⇒ Object
Market for plan
1059 1060 1061 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1059 def market @market end |
#name ⇒ Object
The medical plan name
1062 1063 1064 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1062 def name @name 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")?
1065 1066 1067 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1065 def plan_calendar @plan_calendar end |
#plan_market ⇒ Object
Market in which the plan is offered (on_marketplace, shop, etc)
1068 1069 1070 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1068 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)
1071 1072 1073 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1071 def plan_type @plan_type end |
#private_exchange ⇒ Object
Plan private exchange
1074 1075 1076 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1074 def private_exchange @private_exchange end |
#privileged_data ⇒ Object
TRUE if plan data is Privileged
1077 1078 1079 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1077 def privileged_data @privileged_data end |
#sbc_name ⇒ Object
Name of the SBC
1080 1081 1082 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1080 def sbc_name @sbc_name end |
#service_area_external_key ⇒ Object
The external identifier for the plan service area
1083 1084 1085 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1083 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?
1086 1087 1088 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1086 def skilled_nursing_facility_365 @skilled_nursing_facility_365 end |
#source ⇒ Object
Source of the plan benefit data
1089 1090 1091 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1089 def source @source end |
#state_code ⇒ Object
State code
1092 1093 1094 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1092 def state_code @state_code end |
#year ⇒ Object
Plan year
1095 1096 1097 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1095 def year @year end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1099 def self.attribute_map { :'actively_marketed' => :'actively_marketed', :'actuarial_value' => :'actuarial_value', :'age29_rider' => :'age29_rider', :'audience' => :'audience', :'benefits' => :'benefits', :'benefits_summary_url' => :'benefits_summary_url', :'buy_link' => :'buy_link', :'coinsurance' => :'coinsurance', :'covered_ages' => :'covered_ages', :'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', :'family_tier' => :'family_tier', :'fp_rider' => :'fp_rider', :'gated' => :'gated', :'hsa_eligible' => :'hsa_eligible', :'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_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', :'year' => :'year' } end |
.swagger_types ⇒ Object
Attribute type mapping.
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 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1141 def self.swagger_types { :'actively_marketed' => :'String', :'actuarial_value' => :'Float', :'age29_rider' => :'BOOLEAN', :'audience' => :'String', :'benefits' => :'MedicalPlanBenefits', :'benefits_summary_url' => :'String', :'buy_link' => :'String', :'coinsurance' => :'Float', :'covered_ages' => :'String', :'dp_rider' => :'BOOLEAN', :'drug_formulary_url' => :'String', :'embedded_deductible' => :'String', :'essential_health_benefits_percentage' => :'Float', :'external_id' => :'String', :'external_ids' => :'Array<PlanIdentifier>', :'family_tier' => :'BOOLEAN', :'fp_rider' => :'BOOLEAN', :'gated' => :'BOOLEAN', :'hsa_eligible' => :'BOOLEAN', :'issuer_vericred_id' => :'String', :'key_benefits_complete' => :'BOOLEAN', :'level' => :'String', :'mail_order_rx' => :'Float', :'market' => :'String', :'name' => :'String', :'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', :'year' => :'Integer' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
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 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1353 def ==(o) return true if self.equal?(o) self.class == o.class && actively_marketed == o.actively_marketed && actuarial_value == o.actuarial_value && age29_rider == o.age29_rider && audience == o.audience && benefits == o.benefits && benefits_summary_url == o.benefits_summary_url && buy_link == o.buy_link && coinsurance == o.coinsurance && covered_ages == o.covered_ages && 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 && family_tier == o.family_tier && fp_rider == o.fp_rider && gated == o.gated && hsa_eligible == o.hsa_eligible && 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_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 && year == o.year end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
1430 1431 1432 1433 1434 1435 1436 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 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1430 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
1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1496 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
1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1409 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
1396 1397 1398 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1396 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
1402 1403 1404 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1402 def hash [actively_marketed, actuarial_value, age29_rider, audience, benefits, benefits_summary_url, buy_link, coinsurance, covered_ages, dp_rider, drug_formulary_url, , essential_health_benefits_percentage, external_id, external_ids, family_tier, fp_rider, gated, hsa_eligible, issuer_vericred_id, key_benefits_complete, level, mail_order_rx, market, name, plan_calendar, plan_market, plan_type, private_exchange, privileged_data, sbc_name, service_area_external_key, skilled_nursing_facility_365, source, state_code, year].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
1340 1341 1342 1343 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1340 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)
1476 1477 1478 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1476 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
1482 1483 1484 1485 1486 1487 1488 1489 1490 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1482 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
1470 1471 1472 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1470 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
1347 1348 1349 |
# File 'lib/vericred_client/models/medical_plan_update.rb', line 1347 def valid? return true end |