Class: VericredClient::Plan

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Plan

Initializes the object

Parameters:

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

    Model attributes in the form of hash



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
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
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
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
# File 'lib/vericred_client/models/plan.rb', line 374

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?(:'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?(:'carrier_name')
    self.carrier_name = attributes[:'carrier_name']
  end

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

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

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

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

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

  if attributes.has_key?(:'drug_formulary_url')
    self.drug_formulary_url = attributes[:'drug_formulary_url']
  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?(:'hios_issuer_id')
    self.hios_issuer_id = attributes[:'hios_issuer_id']
  end

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

  if attributes.has_key?(:'imaging')
    self.imaging = attributes[:'imaging']
  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_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?(:'level')
    self.level = attributes[:'level']
  end

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

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

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

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

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

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

  if attributes.has_key?(:'out_of_network_coverage')
    self.out_of_network_coverage = attributes[:'out_of_network_coverage']
  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?(:'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?(:'preferred_brand_drugs')
    self.preferred_brand_drugs = attributes[:'preferred_brand_drugs']
  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?(:'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

Does the plan provide dental coverage for adults?



131
132
133
# File 'lib/vericred_client/models/plan.rb', line 131

def adult_dental
  @adult_dental
end

#ambulanceObject

Benefits string for ambulance coverage



134
135
136
# File 'lib/vericred_client/models/plan.rb', line 134

def ambulance
  @ambulance
end

#benefits_summary_urlObject

Link to the summary of benefits and coverage (SBC) document.



137
138
139
# File 'lib/vericred_client/models/plan.rb', line 137

def benefits_summary_url
  @benefits_summary_url
end

Link to a location to purchase the plan.



140
141
142
# File 'lib/vericred_client/models/plan.rb', line 140

def buy_link
  @buy_link
end

#carrier_nameObject

Name of the insurance carrier



143
144
145
# File 'lib/vericred_client/models/plan.rb', line 143

def carrier_name
  @carrier_name
end

#child_dentalObject

Does the plan provide dental coverage for children?



146
147
148
# File 'lib/vericred_client/models/plan.rb', line 146

def child_dental
  @child_dental
end

#child_eyewearObject

Child eyewear benefits summary



149
150
151
# File 'lib/vericred_client/models/plan.rb', line 149

def child_eyewear
  @child_eyewear
end

#customer_service_phone_numberObject

Phone number to contact the insurance carrier



152
153
154
# File 'lib/vericred_client/models/plan.rb', line 152

def customer_service_phone_number
  @customer_service_phone_number
end

#diagnostic_testObject

Diagnostic tests benefit summary



158
159
160
# File 'lib/vericred_client/models/plan.rb', line 158

def diagnostic_test
  @diagnostic_test
end

#drug_formulary_urlObject

Link to the summary of drug benefits for the plan



161
162
163
# File 'lib/vericred_client/models/plan.rb', line 161

def drug_formulary_url
  @drug_formulary_url
end

#durable_medical_equipmentObject

Benefits summary for durable medical equipment



155
156
157
# File 'lib/vericred_client/models/plan.rb', line 155

def durable_medical_equipment
  @durable_medical_equipment
end

#emergency_roomObject

Description of costs when visiting the ER



164
165
166
# File 'lib/vericred_client/models/plan.rb', line 164

def emergency_room
  @emergency_room
end

#family_drug_deductibleObject

Deductible for drugs when a family is on the plan.



167
168
169
# File 'lib/vericred_client/models/plan.rb', line 167

def family_drug_deductible
  @family_drug_deductible
end

#family_drug_moopObject

Maximum out-of-pocket for drugs when a family is on the plan



170
171
172
# File 'lib/vericred_client/models/plan.rb', line 170

def family_drug_moop
  @family_drug_moop
end

#family_medical_deductibleObject

Deductible when a family is on the plan



173
174
175
# File 'lib/vericred_client/models/plan.rb', line 173

def family_medical_deductible
  @family_medical_deductible
end

#family_medical_moopObject

Maximum out-of-pocket when a family is on the plan



176
177
178
# File 'lib/vericred_client/models/plan.rb', line 176

def family_medical_moop
  @family_medical_moop
end

#generic_drugsObject

Cost for generic drugs



179
180
181
# File 'lib/vericred_client/models/plan.rb', line 179

def generic_drugs
  @generic_drugs
end

#hios_issuer_idObject

Returns the value of attribute hios_issuer_id.



182
183
184
# File 'lib/vericred_client/models/plan.rb', line 182

def hios_issuer_id
  @hios_issuer_id
end

#idObject

Government-issued HIOS plan ID



185
186
187
# File 'lib/vericred_client/models/plan.rb', line 185

def id
  @id
end

#imagingObject

Benefits summary for imaging coverage



188
189
190
# File 'lib/vericred_client/models/plan.rb', line 188

def imaging
  @imaging
end

#individual_drug_deductibleObject

Deductible for drugs when an individual is on the plan



191
192
193
# File 'lib/vericred_client/models/plan.rb', line 191

def individual_drug_deductible
  @individual_drug_deductible
end

#individual_drug_moopObject

Maximum out-of-pocket for drugs when an individual is on the plan



194
195
196
# File 'lib/vericred_client/models/plan.rb', line 194

def individual_drug_moop
  @individual_drug_moop
end

#individual_medical_deductibleObject

Deductible when an individual is on the plan



197
198
199
# File 'lib/vericred_client/models/plan.rb', line 197

def individual_medical_deductible
  @individual_medical_deductible
end

#individual_medical_moopObject

Maximum out-of-pocket when an individual is on the plan



200
201
202
# File 'lib/vericred_client/models/plan.rb', line 200

def individual_medical_moop
  @individual_medical_moop
end

#inpatient_facilityObject

Cost under the plan for an inpatient facility



203
204
205
# File 'lib/vericred_client/models/plan.rb', line 203

def inpatient_facility
  @inpatient_facility
end

#inpatient_physicianObject

Cost under the plan for an inpatient physician



206
207
208
# File 'lib/vericred_client/models/plan.rb', line 206

def inpatient_physician
  @inpatient_physician
end

#levelObject

Plan metal grouping (e.g. platinum, gold, silver, etc)



209
210
211
# File 'lib/vericred_client/models/plan.rb', line 209

def level
  @level
end

#logo_urlObject

Link to a copy of the insurance carrier’s logo



212
213
214
# File 'lib/vericred_client/models/plan.rb', line 212

def logo_url
  @logo_url
end

#nameObject

Marketing name of the plan



215
216
217
# File 'lib/vericred_client/models/plan.rb', line 215

def name
  @name
end

#network_sizeObject

Total number of Providers in network



218
219
220
# File 'lib/vericred_client/models/plan.rb', line 218

def network_size
  @network_size
end

#non_preferred_brand_drugsObject

Cost under the plan for non-preferred brand drugs



221
222
223
# File 'lib/vericred_client/models/plan.rb', line 221

def non_preferred_brand_drugs
  @non_preferred_brand_drugs
end

#off_marketObject

Is the plan off-market?



227
228
229
# File 'lib/vericred_client/models/plan.rb', line 227

def off_market
  @off_market
end

#on_marketObject

Is the plan on-market?



224
225
226
# File 'lib/vericred_client/models/plan.rb', line 224

def on_market
  @on_market
end

#out_of_network_coverageObject

Does this plan provide any out of network coverage?



230
231
232
# File 'lib/vericred_client/models/plan.rb', line 230

def out_of_network_coverage
  @out_of_network_coverage
end

#outpatient_facilityObject

Benefits summary for outpatient facility coverage



233
234
235
# File 'lib/vericred_client/models/plan.rb', line 233

def outpatient_facility
  @outpatient_facility
end

#outpatient_mental_healthObject

Benefits summary for outpatient mental health coverage



236
237
238
# File 'lib/vericred_client/models/plan.rb', line 236

def outpatient_mental_health
  @outpatient_mental_health
end

#outpatient_physicianObject

Benefits summary for outpatient physician coverage



239
240
241
# File 'lib/vericred_client/models/plan.rb', line 239

def outpatient_physician
  @outpatient_physician
end

#plan_marketObject

Market in which the plan is offered (on_marketplace, shop, etc)



242
243
244
# File 'lib/vericred_client/models/plan.rb', line 242

def plan_market
  @plan_market
end

#plan_typeObject

Category of the plan (e.g. EPO, HMO, PPO, POS, Indemnity)



245
246
247
# File 'lib/vericred_client/models/plan.rb', line 245

def plan_type
  @plan_type
end

#preferred_brand_drugsObject

Cost under the plan for perferred brand drugs



248
249
250
# File 'lib/vericred_client/models/plan.rb', line 248

def preferred_brand_drugs
  @preferred_brand_drugs
end

#preventative_careObject

Benefits summary for preventative care



251
252
253
# File 'lib/vericred_client/models/plan.rb', line 251

def preventative_care
  @preventative_care
end

#primary_care_physicianObject

Cost under the plan to visit a Primary Care Physician



254
255
256
# File 'lib/vericred_client/models/plan.rb', line 254

def primary_care_physician
  @primary_care_physician
end

#rehabilitation_servicesObject

Benefits summary for rehabilitation services



257
258
259
# File 'lib/vericred_client/models/plan.rb', line 257

def rehabilitation_services
  @rehabilitation_services
end

#specialistObject

Cost under the plan to visit a specialist



260
261
262
# File 'lib/vericred_client/models/plan.rb', line 260

def specialist
  @specialist
end

#specialty_drugsObject

Cost under the plan for specialty drugs



263
264
265
# File 'lib/vericred_client/models/plan.rb', line 263

def specialty_drugs
  @specialty_drugs
end

#urgent_careObject

Benefits summary for urgent care



266
267
268
# File 'lib/vericred_client/models/plan.rb', line 266

def urgent_care
  @urgent_care
end

Class Method Details

.attribute_mapObject

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



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
# File 'lib/vericred_client/models/plan.rb', line 269

def self.attribute_map
  {
    :'adult_dental' => :'adult_dental',
    :'ambulance' => :'ambulance',
    :'benefits_summary_url' => :'benefits_summary_url',
    :'buy_link' => :'buy_link',
    :'carrier_name' => :'carrier_name',
    :'child_dental' => :'child_dental',
    :'child_eyewear' => :'child_eyewear',
    :'customer_service_phone_number' => :'customer_service_phone_number',
    :'durable_medical_equipment' => :'durable_medical_equipment',
    :'diagnostic_test' => :'diagnostic_test',
    :'drug_formulary_url' => :'drug_formulary_url',
    :'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',
    :'hios_issuer_id' => :'hios_issuer_id',
    :'id' => :'id',
    :'imaging' => :'imaging',
    :'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_facility' => :'inpatient_facility',
    :'inpatient_physician' => :'inpatient_physician',
    :'level' => :'level',
    :'logo_url' => :'logo_url',
    :'name' => :'name',
    :'network_size' => :'network_size',
    :'non_preferred_brand_drugs' => :'non_preferred_brand_drugs',
    :'on_market' => :'on_market',
    :'off_market' => :'off_market',
    :'out_of_network_coverage' => :'out_of_network_coverage',
    :'outpatient_facility' => :'outpatient_facility',
    :'outpatient_mental_health' => :'outpatient_mental_health',
    :'outpatient_physician' => :'outpatient_physician',
    :'plan_market' => :'plan_market',
    :'plan_type' => :'plan_type',
    :'preferred_brand_drugs' => :'preferred_brand_drugs',
    :'preventative_care' => :'preventative_care',
    :'primary_care_physician' => :'primary_care_physician',
    :'rehabilitation_services' => :'rehabilitation_services',
    :'specialist' => :'specialist',
    :'specialty_drugs' => :'specialty_drugs',
    :'urgent_care' => :'urgent_care'
  }
end

.swagger_typesObject

Attribute type mapping.



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
# File 'lib/vericred_client/models/plan.rb', line 321

def self.swagger_types
  {
    :'adult_dental' => :'BOOLEAN',
    :'ambulance' => :'String',
    :'benefits_summary_url' => :'String',
    :'buy_link' => :'String',
    :'carrier_name' => :'String',
    :'child_dental' => :'BOOLEAN',
    :'child_eyewear' => :'String',
    :'customer_service_phone_number' => :'String',
    :'durable_medical_equipment' => :'String',
    :'diagnostic_test' => :'String',
    :'drug_formulary_url' => :'String',
    :'emergency_room' => :'String',
    :'family_drug_deductible' => :'String',
    :'family_drug_moop' => :'String',
    :'family_medical_deductible' => :'String',
    :'family_medical_moop' => :'String',
    :'generic_drugs' => :'String',
    :'hios_issuer_id' => :'String',
    :'id' => :'String',
    :'imaging' => :'String',
    :'individual_drug_deductible' => :'String',
    :'individual_drug_moop' => :'String',
    :'individual_medical_deductible' => :'String',
    :'individual_medical_moop' => :'String',
    :'inpatient_facility' => :'String',
    :'inpatient_physician' => :'String',
    :'level' => :'String',
    :'logo_url' => :'String',
    :'name' => :'String',
    :'network_size' => :'Integer',
    :'non_preferred_brand_drugs' => :'String',
    :'on_market' => :'BOOLEAN',
    :'off_market' => :'BOOLEAN',
    :'out_of_network_coverage' => :'BOOLEAN',
    :'outpatient_facility' => :'String',
    :'outpatient_mental_health' => :'String',
    :'outpatient_physician' => :'String',
    :'plan_market' => :'String',
    :'plan_type' => :'String',
    :'preferred_brand_drugs' => :'String',
    :'preventative_care' => :'String',
    :'primary_care_physician' => :'String',
    :'rehabilitation_services' => :'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



580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
# File 'lib/vericred_client/models/plan.rb', line 580

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      adult_dental == o.adult_dental &&
      ambulance == o.ambulance &&
      benefits_summary_url == o.benefits_summary_url &&
      buy_link == o.buy_link &&
      carrier_name == o.carrier_name &&
      child_dental == o.child_dental &&
      child_eyewear == o.child_eyewear &&
      customer_service_phone_number == o.customer_service_phone_number &&
      durable_medical_equipment == o.durable_medical_equipment &&
      diagnostic_test == o.diagnostic_test &&
      drug_formulary_url == o.drug_formulary_url &&
      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 &&
      hios_issuer_id == o.hios_issuer_id &&
      id == o.id &&
      imaging == o.imaging &&
      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_facility == o.inpatient_facility &&
      inpatient_physician == o.inpatient_physician &&
      level == o.level &&
      logo_url == o.logo_url &&
      name == o.name &&
      network_size == o.network_size &&
      non_preferred_brand_drugs == o.non_preferred_brand_drugs &&
      on_market == o.on_market &&
      off_market == o.off_market &&
      out_of_network_coverage == o.out_of_network_coverage &&
      outpatient_facility == o.outpatient_facility &&
      outpatient_mental_health == o.outpatient_mental_health &&
      outpatient_physician == o.outpatient_physician &&
      plan_market == o.plan_market &&
      plan_type == o.plan_type &&
      preferred_brand_drugs == o.preferred_brand_drugs &&
      preventative_care == o.preventative_care &&
      primary_care_physician == o.primary_care_physician &&
      rehabilitation_services == o.rehabilitation_services &&
      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



667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
# File 'lib/vericred_client/models/plan.rb', line 667

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 =~ /^(true|t|yes|y|1)$/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



733
734
735
736
737
738
739
740
741
742
743
744
745
# File 'lib/vericred_client/models/plan.rb', line 733

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



646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
# File 'lib/vericred_client/models/plan.rb', line 646

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  self.class.swagger_types.each_pair do |key, type|
    if type =~ /^Array<(.*)>/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


633
634
635
# File 'lib/vericred_client/models/plan.rb', line 633

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



639
640
641
# File 'lib/vericred_client/models/plan.rb', line 639

def hash
  [adult_dental, ambulance, benefits_summary_url, buy_link, carrier_name, child_dental, child_eyewear, customer_service_phone_number, durable_medical_equipment, diagnostic_test, drug_formulary_url, emergency_room, family_drug_deductible, family_drug_moop, family_medical_deductible, family_medical_moop, generic_drugs, hios_issuer_id, id, imaging, individual_drug_deductible, individual_drug_moop, individual_medical_deductible, individual_medical_moop, inpatient_facility, inpatient_physician, level, logo_url, name, network_size, non_preferred_brand_drugs, on_market, off_market, out_of_network_coverage, outpatient_facility, outpatient_mental_health, outpatient_physician, plan_market, plan_type, preferred_brand_drugs, preventative_care, primary_care_physician, rehabilitation_services, 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



568
569
570
571
# File 'lib/vericred_client/models/plan.rb', line 568

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



713
714
715
# File 'lib/vericred_client/models/plan.rb', line 713

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



719
720
721
722
723
724
725
726
727
# File 'lib/vericred_client/models/plan.rb', line 719

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



707
708
709
# File 'lib/vericred_client/models/plan.rb', line 707

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



575
576
# File 'lib/vericred_client/models/plan.rb', line 575

def valid?
end