Class: VericredClient::MedicalPlanBenefits
- Inherits:
-
Object
- Object
- VericredClient::MedicalPlanBenefits
- Defined in:
- lib/vericred_client/models/medical_plan_benefits.rb
Instance Attribute Summary collapse
-
#adult_dental ⇒ Object
Adult Dental benefits string.
-
#ambulance ⇒ Object
Ambulance benefits string.
-
#child_dental ⇒ Object
Child Dental benefits string.
-
#child_eye_exam ⇒ Object
Child Eye Exam benefits string.
-
#child_eyewear ⇒ Object
Child Eyewear benefits string.
-
#chiropractic_services ⇒ Object
Chiropractic Services benefits string.
-
#diagnostic_test ⇒ Object
Diagnostic Test benefits string.
-
#durable_medical_equipment ⇒ Object
Durable Medical Equipment benefits string.
-
#emergency_room ⇒ Object
Emergency Room benefits string.
-
#family_drug_deductible ⇒ Object
Family Drug Deductible benefits string.
-
#family_drug_moop ⇒ Object
Family Drug Moop benefits string.
-
#family_medical_deductible ⇒ Object
Family Medical Deductible benefits string.
-
#family_medical_moop ⇒ Object
Family Medical Moop benefits string.
-
#generic_drugs ⇒ Object
Generic Drugs benefits string.
-
#habilitation_services ⇒ Object
Habilitation Services benefits string.
-
#home_health_care ⇒ Object
Home Health Care benefits string.
-
#hospice_service ⇒ Object
Hospice Service benefits string.
-
#imaging_center ⇒ Object
Imaging Center benefits string.
-
#imaging_physician ⇒ Object
Imaging PHysician benefits string.
-
#individual_drug_deductible ⇒ Object
Individual Drug Deductible benefits string.
-
#individual_drug_moop ⇒ Object
Individual Drug Moop benefits string.
-
#individual_medical_deductible ⇒ Object
Individual Medical Deductible benefits string.
-
#individual_medical_moop ⇒ Object
Individual Medical Moop benefits string.
-
#inpatient_birth ⇒ Object
Inpatient Birth benefits string.
-
#inpatient_facility ⇒ Object
Inpatient Facility benefits string.
-
#inpatient_mental_health ⇒ Object
Inpatient Mental Health benefits string.
-
#inpatient_physician ⇒ Object
Inpatient Physician benefits string.
-
#inpatient_substance ⇒ Object
Inpatient Substance benefits string.
-
#lab_test ⇒ Object
Lab Test benefits string.
-
#non_preferred_brand_drugs ⇒ Object
Non Preferred Brand_drugs benefits string.
-
#nonpreferred_generic_drug_share ⇒ Object
Non Preferred Generic_drug_share benefits string.
-
#nonpreferred_specialty_drug_share ⇒ Object
Non Preferred Specialty Drug Share benefits string.
-
#outpatient_ambulatory_care_center ⇒ Object
Outpatient Ambulatory Care Center benefits string.
-
#outpatient_facility ⇒ Object
Outpatient Hospital benefits string.
-
#outpatient_mental_health ⇒ Object
Outpatient Mental Health benefits string.
-
#outpatient_physician ⇒ Object
outpatient Physician benefits string.
-
#outpatient_substance ⇒ Object
Outpatient Substance benefits string.
-
#postnatal_care ⇒ Object
Postnatal Care benefits string.
-
#preferred_brand_drugs ⇒ Object
Preferred Brand Drugs benefits string.
-
#prenatal_care ⇒ Object
Prenatal Care benefits string.
-
#preventative_care ⇒ Object
Preventative Care benefits string.
-
#primary_care_physician ⇒ Object
Primary Care Physician benefits string.
-
#rehabilitation_services ⇒ Object
Rehabilitation Services benefits string.
-
#skilled_nursing ⇒ Object
Skilled Nursing benefits string.
-
#specialist ⇒ Object
Specialist benefits string.
-
#specialty_drugs ⇒ Object
Specialty Drugs benefits string.
-
#urgent_care ⇒ Object
Urgent Care benefits string.
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 = {}) ⇒ MedicalPlanBenefits
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 = {}) ⇒ MedicalPlanBenefits
Initializes the object
268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 268 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?(:'individual_medical_deductible') self.individual_medical_deductible = attributes[:'individual_medical_deductible'] end if attributes.has_key?(:'family_medical_deductible') self.family_medical_deductible = attributes[:'family_medical_deductible'] end if attributes.has_key?(:'individual_drug_deductible') self.individual_drug_deductible = attributes[:'individual_drug_deductible'] end if attributes.has_key?(:'family_drug_deductible') self.family_drug_deductible = attributes[:'family_drug_deductible'] end if attributes.has_key?(:'individual_medical_moop') self.individual_medical_moop = attributes[:'individual_medical_moop'] end if attributes.has_key?(:'family_medical_moop') self.family_medical_moop = attributes[:'family_medical_moop'] end if attributes.has_key?(:'individual_drug_moop') self.individual_drug_moop = attributes[:'individual_drug_moop'] end if attributes.has_key?(:'family_drug_moop') self.family_drug_moop = attributes[:'family_drug_moop'] end if attributes.has_key?(:'primary_care_physician') self.primary_care_physician = attributes[:'primary_care_physician'] end if attributes.has_key?(:'specialist') self.specialist = attributes[:'specialist'] end if attributes.has_key?(:'preventative_care') self.preventative_care = attributes[:'preventative_care'] 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?(:'lab_test') self.lab_test = attributes[:'lab_test'] 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?(:'generic_drugs') self.generic_drugs = attributes[:'generic_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?(:'preferred_brand_drugs') self.preferred_brand_drugs = attributes[:'preferred_brand_drugs'] end if attributes.has_key?(:'non_preferred_brand_drugs') self.non_preferred_brand_drugs = attributes[:'non_preferred_brand_drugs'] end if attributes.has_key?(:'specialty_drugs') self.specialty_drugs = attributes[:'specialty_drugs'] 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_facility') self.outpatient_facility = attributes[:'outpatient_facility'] 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_physician') self.outpatient_physician = attributes[:'outpatient_physician'] end if attributes.has_key?(:'emergency_room') self.emergency_room = attributes[:'emergency_room'] end if attributes.has_key?(:'ambulance') self.ambulance = attributes[:'ambulance'] end if attributes.has_key?(:'urgent_care') self.urgent_care = attributes[:'urgent_care'] end if attributes.has_key?(:'inpatient_facility') self.inpatient_facility = attributes[:'inpatient_facility'] end if attributes.has_key?(:'inpatient_physician') self.inpatient_physician = attributes[:'inpatient_physician'] end if attributes.has_key?(:'outpatient_mental_health') self.outpatient_mental_health = attributes[:'outpatient_mental_health'] end if attributes.has_key?(:'inpatient_mental_health') self.inpatient_mental_health = attributes[:'inpatient_mental_health'] end if attributes.has_key?(:'outpatient_substance') self.outpatient_substance = attributes[:'outpatient_substance'] end if attributes.has_key?(:'inpatient_substance') self.inpatient_substance = attributes[:'inpatient_substance'] end if attributes.has_key?(:'prenatal_care') self.prenatal_care = attributes[:'prenatal_care'] end if attributes.has_key?(:'postnatal_care') self.postnatal_care = attributes[:'postnatal_care'] end if attributes.has_key?(:'inpatient_birth') self.inpatient_birth = attributes[:'inpatient_birth'] end if attributes.has_key?(:'home_health_care') self.home_health_care = attributes[:'home_health_care'] end if attributes.has_key?(:'rehabilitation_services') self.rehabilitation_services = attributes[:'rehabilitation_services'] end if attributes.has_key?(:'habilitation_services') self.habilitation_services = attributes[:'habilitation_services'] end if attributes.has_key?(:'skilled_nursing') self.skilled_nursing = attributes[:'skilled_nursing'] end if attributes.has_key?(:'durable_medical_equipment') self.durable_medical_equipment = attributes[:'durable_medical_equipment'] end if attributes.has_key?(:'hospice_service') self.hospice_service = attributes[:'hospice_service'] 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?(:'child_dental') self.child_dental = attributes[:'child_dental'] end if attributes.has_key?(:'adult_dental') self.adult_dental = attributes[:'adult_dental'] end end |
Instance Attribute Details
#adult_dental ⇒ Object
Adult Dental benefits string
157 158 159 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 157 def adult_dental @adult_dental end |
#ambulance ⇒ Object
Ambulance benefits string
97 98 99 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 97 def ambulance @ambulance end |
#child_dental ⇒ Object
Child Dental benefits string
154 155 156 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 154 def child_dental @child_dental end |
#child_eye_exam ⇒ Object
Child Eye Exam benefits string
148 149 150 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 148 def child_eye_exam @child_eye_exam end |
#child_eyewear ⇒ Object
Child Eyewear benefits string
151 152 153 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 151 def child_eyewear @child_eyewear end |
#chiropractic_services ⇒ Object
Chiropractic Services benefits string
52 53 54 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 52 def chiropractic_services @chiropractic_services end |
#diagnostic_test ⇒ Object
Diagnostic Test benefits string
55 56 57 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 55 def diagnostic_test @diagnostic_test end |
#durable_medical_equipment ⇒ Object
Durable Medical Equipment benefits string
142 143 144 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 142 def durable_medical_equipment @durable_medical_equipment end |
#emergency_room ⇒ Object
Emergency Room benefits string
94 95 96 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 94 def emergency_room @emergency_room end |
#family_drug_deductible ⇒ Object
Family Drug Deductible benefits string
28 29 30 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 28 def family_drug_deductible @family_drug_deductible end |
#family_drug_moop ⇒ Object
Family Drug Moop benefits string
40 41 42 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 40 def family_drug_moop @family_drug_moop end |
#family_medical_deductible ⇒ Object
Family Medical Deductible benefits string
22 23 24 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 22 def family_medical_deductible @family_medical_deductible end |
#family_medical_moop ⇒ Object
Family Medical Moop benefits string
34 35 36 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 34 def family_medical_moop @family_medical_moop end |
#generic_drugs ⇒ Object
Generic Drugs benefits string
67 68 69 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 67 def generic_drugs @generic_drugs end |
#habilitation_services ⇒ Object
Habilitation Services benefits string
136 137 138 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 136 def habilitation_services @habilitation_services end |
#home_health_care ⇒ Object
Home Health Care benefits string
130 131 132 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 130 def home_health_care @home_health_care end |
#hospice_service ⇒ Object
Hospice Service benefits string
145 146 147 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 145 def hospice_service @hospice_service end |
#imaging_center ⇒ Object
Imaging Center benefits string
61 62 63 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 61 def imaging_center @imaging_center end |
#imaging_physician ⇒ Object
Imaging PHysician benefits string
64 65 66 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 64 def imaging_physician @imaging_physician end |
#individual_drug_deductible ⇒ Object
Individual Drug Deductible benefits string
25 26 27 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 25 def individual_drug_deductible @individual_drug_deductible end |
#individual_drug_moop ⇒ Object
Individual Drug Moop benefits string
37 38 39 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 37 def individual_drug_moop @individual_drug_moop end |
#individual_medical_deductible ⇒ Object
Individual Medical Deductible benefits string
19 20 21 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 19 def individual_medical_deductible @individual_medical_deductible end |
#individual_medical_moop ⇒ Object
Individual Medical Moop benefits string
31 32 33 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 31 def individual_medical_moop @individual_medical_moop end |
#inpatient_birth ⇒ Object
Inpatient Birth benefits string
127 128 129 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 127 def inpatient_birth @inpatient_birth end |
#inpatient_facility ⇒ Object
Inpatient Facility benefits string
103 104 105 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 103 def inpatient_facility @inpatient_facility end |
#inpatient_mental_health ⇒ Object
Inpatient Mental Health benefits string
112 113 114 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 112 def inpatient_mental_health @inpatient_mental_health end |
#inpatient_physician ⇒ Object
Inpatient Physician benefits string
106 107 108 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 106 def inpatient_physician @inpatient_physician end |
#inpatient_substance ⇒ Object
Inpatient Substance benefits string
118 119 120 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 118 def inpatient_substance @inpatient_substance end |
#lab_test ⇒ Object
Lab Test benefits string
58 59 60 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 58 def lab_test @lab_test end |
#non_preferred_brand_drugs ⇒ Object
Non Preferred Brand_drugs benefits string
76 77 78 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 76 def non_preferred_brand_drugs @non_preferred_brand_drugs end |
#nonpreferred_generic_drug_share ⇒ Object
Non Preferred Generic_drug_share benefits string
70 71 72 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 70 def nonpreferred_generic_drug_share @nonpreferred_generic_drug_share end |
#nonpreferred_specialty_drug_share ⇒ Object
Non Preferred Specialty Drug Share benefits string
82 83 84 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 82 def nonpreferred_specialty_drug_share @nonpreferred_specialty_drug_share end |
#outpatient_ambulatory_care_center ⇒ Object
Outpatient Ambulatory Care Center benefits string
88 89 90 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 88 def outpatient_ambulatory_care_center @outpatient_ambulatory_care_center end |
#outpatient_facility ⇒ Object
Outpatient Hospital benefits string
85 86 87 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 85 def outpatient_facility @outpatient_facility end |
#outpatient_mental_health ⇒ Object
Outpatient Mental Health benefits string
109 110 111 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 109 def outpatient_mental_health @outpatient_mental_health end |
#outpatient_physician ⇒ Object
outpatient Physician benefits string
91 92 93 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 91 def outpatient_physician @outpatient_physician end |
#outpatient_substance ⇒ Object
Outpatient Substance benefits string
115 116 117 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 115 def outpatient_substance @outpatient_substance end |
#postnatal_care ⇒ Object
Postnatal Care benefits string
124 125 126 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 124 def postnatal_care @postnatal_care end |
#preferred_brand_drugs ⇒ Object
Preferred Brand Drugs benefits string
73 74 75 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 73 def preferred_brand_drugs @preferred_brand_drugs end |
#prenatal_care ⇒ Object
Prenatal Care benefits string
121 122 123 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 121 def prenatal_care @prenatal_care end |
#preventative_care ⇒ Object
Preventative Care benefits string
49 50 51 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 49 def preventative_care @preventative_care end |
#primary_care_physician ⇒ Object
Primary Care Physician benefits string
43 44 45 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 43 def primary_care_physician @primary_care_physician end |
#rehabilitation_services ⇒ Object
Rehabilitation Services benefits string
133 134 135 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 133 def rehabilitation_services @rehabilitation_services end |
#skilled_nursing ⇒ Object
Skilled Nursing benefits string
139 140 141 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 139 def skilled_nursing @skilled_nursing end |
#specialist ⇒ Object
Specialist benefits string
46 47 48 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 46 def specialist @specialist end |
#specialty_drugs ⇒ Object
Specialty Drugs benefits string
79 80 81 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 79 def specialty_drugs @specialty_drugs end |
#urgent_care ⇒ Object
Urgent Care benefits string
100 101 102 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 100 def urgent_care @urgent_care end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 161 def self.attribute_map { :'individual_medical_deductible' => :'individual_medical_deductible', :'family_medical_deductible' => :'family_medical_deductible', :'individual_drug_deductible' => :'individual_drug_deductible', :'family_drug_deductible' => :'family_drug_deductible', :'individual_medical_moop' => :'individual_medical_moop', :'family_medical_moop' => :'family_medical_moop', :'individual_drug_moop' => :'individual_drug_moop', :'family_drug_moop' => :'family_drug_moop', :'primary_care_physician' => :'primary_care_physician', :'specialist' => :'specialist', :'preventative_care' => :'preventative_care', :'chiropractic_services' => :'chiropractic_services', :'diagnostic_test' => :'diagnostic_test', :'lab_test' => :'lab_test', :'imaging_center' => :'imaging_center', :'imaging_physician' => :'imaging_physician', :'generic_drugs' => :'generic_drugs', :'nonpreferred_generic_drug_share' => :'nonpreferred_generic_drug_share', :'preferred_brand_drugs' => :'preferred_brand_drugs', :'non_preferred_brand_drugs' => :'non_preferred_brand_drugs', :'specialty_drugs' => :'specialty_drugs', :'nonpreferred_specialty_drug_share' => :'nonpreferred_specialty_drug_share', :'outpatient_facility' => :'outpatient_facility', :'outpatient_ambulatory_care_center' => :'outpatient_ambulatory_care_center', :'outpatient_physician' => :'outpatient_physician', :'emergency_room' => :'emergency_room', :'ambulance' => :'ambulance', :'urgent_care' => :'urgent_care', :'inpatient_facility' => :'inpatient_facility', :'inpatient_physician' => :'inpatient_physician', :'outpatient_mental_health' => :'outpatient_mental_health', :'inpatient_mental_health' => :'inpatient_mental_health', :'outpatient_substance' => :'outpatient_substance', :'inpatient_substance' => :'inpatient_substance', :'prenatal_care' => :'prenatal_care', :'postnatal_care' => :'postnatal_care', :'inpatient_birth' => :'inpatient_birth', :'home_health_care' => :'home_health_care', :'rehabilitation_services' => :'rehabilitation_services', :'habilitation_services' => :'habilitation_services', :'skilled_nursing' => :'skilled_nursing', :'durable_medical_equipment' => :'durable_medical_equipment', :'hospice_service' => :'hospice_service', :'child_eye_exam' => :'child_eye_exam', :'child_eyewear' => :'child_eyewear', :'child_dental' => :'child_dental', :'adult_dental' => :'adult_dental' } end |
.swagger_types ⇒ Object
Attribute type mapping.
214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 214 def self.swagger_types { :'individual_medical_deductible' => :'String', :'family_medical_deductible' => :'String', :'individual_drug_deductible' => :'String', :'family_drug_deductible' => :'String', :'individual_medical_moop' => :'String', :'family_medical_moop' => :'String', :'individual_drug_moop' => :'String', :'family_drug_moop' => :'String', :'primary_care_physician' => :'String', :'specialist' => :'String', :'preventative_care' => :'String', :'chiropractic_services' => :'String', :'diagnostic_test' => :'String', :'lab_test' => :'String', :'imaging_center' => :'String', :'imaging_physician' => :'String', :'generic_drugs' => :'String', :'nonpreferred_generic_drug_share' => :'String', :'preferred_brand_drugs' => :'String', :'non_preferred_brand_drugs' => :'String', :'specialty_drugs' => :'String', :'nonpreferred_specialty_drug_share' => :'String', :'outpatient_facility' => :'String', :'outpatient_ambulatory_care_center' => :'String', :'outpatient_physician' => :'String', :'emergency_room' => :'String', :'ambulance' => :'String', :'urgent_care' => :'String', :'inpatient_facility' => :'String', :'inpatient_physician' => :'String', :'outpatient_mental_health' => :'String', :'inpatient_mental_health' => :'String', :'outpatient_substance' => :'String', :'inpatient_substance' => :'String', :'prenatal_care' => :'String', :'postnatal_care' => :'String', :'inpatient_birth' => :'String', :'home_health_care' => :'String', :'rehabilitation_services' => :'String', :'habilitation_services' => :'String', :'skilled_nursing' => :'String', :'durable_medical_equipment' => :'String', :'hospice_service' => :'String', :'child_eye_exam' => :'String', :'child_eyewear' => :'String', :'child_dental' => :'String', :'adult_dental' => :'String' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 479 def ==(o) return true if self.equal?(o) self.class == o.class && individual_medical_deductible == o.individual_medical_deductible && family_medical_deductible == o.family_medical_deductible && individual_drug_deductible == o.individual_drug_deductible && family_drug_deductible == o.family_drug_deductible && individual_medical_moop == o.individual_medical_moop && family_medical_moop == o.family_medical_moop && individual_drug_moop == o.individual_drug_moop && family_drug_moop == o.family_drug_moop && primary_care_physician == o.primary_care_physician && specialist == o.specialist && preventative_care == o.preventative_care && chiropractic_services == o.chiropractic_services && diagnostic_test == o.diagnostic_test && lab_test == o.lab_test && imaging_center == o.imaging_center && imaging_physician == o.imaging_physician && generic_drugs == o.generic_drugs && nonpreferred_generic_drug_share == o.nonpreferred_generic_drug_share && preferred_brand_drugs == o.preferred_brand_drugs && non_preferred_brand_drugs == o.non_preferred_brand_drugs && specialty_drugs == o.specialty_drugs && nonpreferred_specialty_drug_share == o.nonpreferred_specialty_drug_share && outpatient_facility == o.outpatient_facility && outpatient_ambulatory_care_center == o.outpatient_ambulatory_care_center && outpatient_physician == o.outpatient_physician && emergency_room == o.emergency_room && ambulance == o.ambulance && urgent_care == o.urgent_care && inpatient_facility == o.inpatient_facility && inpatient_physician == o.inpatient_physician && outpatient_mental_health == o.outpatient_mental_health && inpatient_mental_health == o.inpatient_mental_health && outpatient_substance == o.outpatient_substance && inpatient_substance == o.inpatient_substance && prenatal_care == o.prenatal_care && postnatal_care == o.postnatal_care && inpatient_birth == o.inpatient_birth && home_health_care == o.home_health_care && rehabilitation_services == o.rehabilitation_services && habilitation_services == o.habilitation_services && skilled_nursing == o.skilled_nursing && durable_medical_equipment == o.durable_medical_equipment && hospice_service == o.hospice_service && child_eye_exam == o.child_eye_exam && child_eyewear == o.child_eyewear && child_dental == o.child_dental && adult_dental == o.adult_dental end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 567 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
633 634 635 636 637 638 639 640 641 642 643 644 645 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 633 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
546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 546 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
533 534 535 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 533 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
539 540 541 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 539 def hash [individual_medical_deductible, family_medical_deductible, individual_drug_deductible, family_drug_deductible, individual_medical_moop, family_medical_moop, individual_drug_moop, family_drug_moop, primary_care_physician, specialist, preventative_care, chiropractic_services, diagnostic_test, lab_test, imaging_center, imaging_physician, generic_drugs, nonpreferred_generic_drug_share, preferred_brand_drugs, non_preferred_brand_drugs, specialty_drugs, nonpreferred_specialty_drug_share, outpatient_facility, outpatient_ambulatory_care_center, outpatient_physician, emergency_room, ambulance, urgent_care, inpatient_facility, inpatient_physician, outpatient_mental_health, inpatient_mental_health, outpatient_substance, inpatient_substance, prenatal_care, postnatal_care, inpatient_birth, home_health_care, rehabilitation_services, habilitation_services, skilled_nursing, durable_medical_equipment, hospice_service, child_eye_exam, child_eyewear, child_dental, adult_dental].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
466 467 468 469 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 466 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)
613 614 615 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 613 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
619 620 621 622 623 624 625 626 627 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 619 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
607 608 609 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 607 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
473 474 475 |
# File 'lib/vericred_client/models/medical_plan_benefits.rb', line 473 def valid? return true end |