class VericredClient::ACAPlanPre2018Bulk
Attributes
Percentage of total average costs for covered benefits that a plan will cover.
Does the plan provide dental coverage for adults?
True if the plan allows dependents up to age 29
Benefits string for ambulance coverage
Link to the summary of benefits and coverage (SBC) document.
Link to a location to purchase the plan.
Most recent Disclaimer issued for this Plan
Name of the insurance carrier
Child dental benefits summary
Child eye exam benefits summary
Child eyewear benefits summary
Does the plan provide a degree of coverage for chiropractic services?
Standard cost share for most benefits
Phone number to contact the insurance carrier
Diagnostic tests benefit summary
Alternate name for the Plan
True if plan does not cover domestic partners
Link to the summary of drug benefits for the plan
Benefits summary for durable medical equipment
Effective date of coverage.
Is the individual deductible for each covered person, embedded in the family deductible
Description of costs when visiting the ER
Expiration date of coverage.
Deductible for drugs when a family is on the plan.
Maximum out-of-pocket for drugs when a family is on the plan
Deductible when a family is on the plan
Maximum out-of-pocket when a family is on the plan
True if plan does not cover family planning
Does the plan's network require a physician referral?
Cost for generic drugs
Habilitation services benefits summary
Home health care benefits summary
Hospice service benefits summary
Is the plan HSA eligible?
Government-issued HIOS plan ID
List of identifiers of this Plan
Benefits summary for imaging coverage
Imaging center benefits summary
Imaging physician benefits summary
Deductible for drugs when an individual is on the plan
Maximum out-of-pocket for drugs when an individual is on the plan
Deductible when an individual is on the plan
Maximum out-of-pocket when an individual is on the plan
Inpatient birth benefits summary
Cost under the plan for an inpatient facility
Inpatient mental helath benefits summary
Cost under the plan for an inpatient physician
Inpatient substance abuse benefits summary
Lab test benefits summary
Plan
metal grouping (e.g. platinum, gold, silver, etc)
Link to a copy of the insurance carrier's logo
Multiple of the standard Rx cost share for orders filled via mail order
Marketing name of the plan
List of Vericred-generated network_ids
Total number of Providers in network
List of networks associated with the plan
Cost under the plan for non-preferred brand drugs
Is the plan off-market?
Is the plan on-market?
Does this plan provide any out of network coverage?
Outpatient ambulatory care center benefits summary
Benefits summary for outpatient facility coverage
Benefits summary for outpatient mental health coverage
Benefits summary for outpatient physician coverage
Outpatient substance abuse benefits summary
Are deductibles and MOOPs reset on Dec-31 ("calendar year"), 365 day(s) after enrollment date ("plan year"), or are both options available ("both")?
Market in which the plan is offered (on_marketplace, shop, etc)
Category of the plan (e.g. EPO, HMO, PPO, POS, Indemnity, PACE, Medicare-Medicaid, HMO w/POS, Cost, FFS, MSA)
Post-natal care benefits summary
Cost under the plan for perferred brand drugs
Prenatal care benefits summary
Inpatient substance abuse benefits summary
Benefits summary for preventative care
Cost under the plan to visit a Primary Care Physician
Benefits summary for rehabilitation services
Foreign key for service area
Benefits summary for skilled nursing services
Does the plan cover full-time, year-round, nursing facilities?
Source of the plan benefit data
Cost under the plan to visit a specialist
Cost under the plan for specialty drugs
The type of the Plan
Time when plan was last updated
Benefits summary for urgent care
Public Class Methods
Attribute mapping from ruby-style variable name to JSON key.
# File lib/vericred_client/models/aca_plan_pre2018_bulk.rb, line 1280 def self.attribute_map { :'actuarial_value' => :'actuarial_value', :'adult_dental' => :'adult_dental', :'age29_rider' => :'age29_rider', :'ambulance' => :'ambulance', :'benefits_summary_url' => :'benefits_summary_url', :'buy_link' => :'buy_link', :'carrier_disclaimers' => :'carrier_disclaimers', :'carrier_name' => :'carrier_name', :'child_dental' => :'child_dental', :'child_eye_exam' => :'child_eye_exam', :'child_eyewear' => :'child_eyewear', :'chiropractic_services' => :'chiropractic_services', :'coinsurance' => :'coinsurance', :'customer_service_phone_number' => :'customer_service_phone_number', :'diagnostic_test' => :'diagnostic_test', :'display_name' => :'display_name', :'dp_rider' => :'dp_rider', :'drug_formulary_url' => :'drug_formulary_url', :'durable_medical_equipment' => :'durable_medical_equipment', :'effective_date' => :'effective_date', :'embedded_deductible' => :'embedded_deductible', :'emergency_room' => :'emergency_room', :'expiration_date' => :'expiration_date', :'family_drug_deductible' => :'family_drug_deductible', :'family_drug_moop' => :'family_drug_moop', :'family_medical_deductible' => :'family_medical_deductible', :'family_medical_moop' => :'family_medical_moop', :'fp_rider' => :'fp_rider', :'gated' => :'gated', :'generic_drugs' => :'generic_drugs', :'habilitation_services' => :'habilitation_services', :'hios_issuer_id' => :'hios_issuer_id', :'home_health_care' => :'home_health_care', :'hospice_service' => :'hospice_service', :'hsa_eligible' => :'hsa_eligible', :'id' => :'id', :'identifiers' => :'identifiers', :'imaging' => :'imaging', :'imaging_center' => :'imaging_center', :'imaging_physician' => :'imaging_physician', :'individual_drug_deductible' => :'individual_drug_deductible', :'individual_drug_moop' => :'individual_drug_moop', :'individual_medical_deductible' => :'individual_medical_deductible', :'individual_medical_moop' => :'individual_medical_moop', :'inpatient_birth' => :'inpatient_birth', :'inpatient_facility' => :'inpatient_facility', :'inpatient_mental_health' => :'inpatient_mental_health', :'inpatient_physician' => :'inpatient_physician', :'inpatient_substance' => :'inpatient_substance', :'lab_test' => :'lab_test', :'level' => :'level', :'logo_url' => :'logo_url', :'mail_order_rx' => :'mail_order_rx', :'name' => :'name', :'network_ids' => :'network_ids', :'network_size' => :'network_size', :'networks' => :'networks', :'non_preferred_brand_drugs' => :'non_preferred_brand_drugs', :'nonpreferred_generic_drug_share' => :'nonpreferred_generic_drug_share', :'nonpreferred_specialty_drug_share' => :'nonpreferred_specialty_drug_share', :'off_market' => :'off_market', :'on_market' => :'on_market', :'out_of_network_coverage' => :'out_of_network_coverage', :'outpatient_ambulatory_care_center' => :'outpatient_ambulatory_care_center', :'outpatient_facility' => :'outpatient_facility', :'outpatient_mental_health' => :'outpatient_mental_health', :'outpatient_physician' => :'outpatient_physician', :'outpatient_substance' => :'outpatient_substance', :'plan_calendar' => :'plan_calendar', :'plan_market' => :'plan_market', :'plan_type' => :'plan_type', :'postnatal_care' => :'postnatal_care', :'preferred_brand_drugs' => :'preferred_brand_drugs', :'prenatal_care' => :'prenatal_care', :'prenatal_postnatal_care' => :'prenatal_postnatal_care', :'preventative_care' => :'preventative_care', :'primary_care_physician' => :'primary_care_physician', :'rehabilitation_services' => :'rehabilitation_services', :'service_area_id' => :'service_area_id', :'skilled_nursing' => :'skilled_nursing', :'skilled_nursing_facility_365' => :'skilled_nursing_facility_365', :'source' => :'source', :'specialist' => :'specialist', :'specialty_drugs' => :'specialty_drugs', :'type' => :'type', :'updated_at' => :'updated_at', :'urgent_care' => :'urgent_care' } end
Initializes the object @param [Hash] attributes Model attributes in the form of hash
# File lib/vericred_client/models/aca_plan_pre2018_bulk.rb, line 1467 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?(:'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?(:'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_disclaimers') self.carrier_disclaimers = attributes[:'carrier_disclaimers'] 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_eye_exam') self.child_eye_exam = attributes[:'child_eye_exam'] end if attributes.has_key?(:'child_eyewear') self.child_eyewear = attributes[:'child_eyewear'] end if attributes.has_key?(:'chiropractic_services') self.chiropractic_services = attributes[:'chiropractic_services'] end if attributes.has_key?(:'coinsurance') self.coinsurance = attributes[:'coinsurance'] end if attributes.has_key?(:'customer_service_phone_number') self.customer_service_phone_number = attributes[:'customer_service_phone_number'] end if attributes.has_key?(:'diagnostic_test') self.diagnostic_test = attributes[:'diagnostic_test'] 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?(:'durable_medical_equipment') self.durable_medical_equipment = attributes[:'durable_medical_equipment'] end if attributes.has_key?(:'effective_date') self.effective_date = attributes[:'effective_date'] end if attributes.has_key?(:'embedded_deductible') self.embedded_deductible = attributes[:'embedded_deductible'] end if attributes.has_key?(:'emergency_room') self.emergency_room = attributes[:'emergency_room'] end if attributes.has_key?(:'expiration_date') self.expiration_date = attributes[:'expiration_date'] 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?(:'fp_rider') self.fp_rider = attributes[:'fp_rider'] end if attributes.has_key?(:'gated') self.gated = attributes[:'gated'] end if attributes.has_key?(:'generic_drugs') self.generic_drugs = attributes[:'generic_drugs'] end if attributes.has_key?(:'habilitation_services') self.habilitation_services = attributes[:'habilitation_services'] end if attributes.has_key?(:'hios_issuer_id') self.hios_issuer_id = attributes[:'hios_issuer_id'] end if attributes.has_key?(:'home_health_care') self.home_health_care = attributes[:'home_health_care'] end if attributes.has_key?(:'hospice_service') self.hospice_service = attributes[:'hospice_service'] end if attributes.has_key?(:'hsa_eligible') self.hsa_eligible = attributes[:'hsa_eligible'] end if attributes.has_key?(:'id') self.id = attributes[:'id'] end if attributes.has_key?(:'identifiers') if (value = attributes[:'identifiers']).is_a?(Array) self.identifiers = value end end if attributes.has_key?(:'imaging') self.imaging = attributes[:'imaging'] end if attributes.has_key?(:'imaging_center') self.imaging_center = attributes[:'imaging_center'] end if attributes.has_key?(:'imaging_physician') self.imaging_physician = attributes[:'imaging_physician'] end if attributes.has_key?(:'individual_drug_deductible') self.individual_drug_deductible = attributes[:'individual_drug_deductible'] end if attributes.has_key?(:'individual_drug_moop') self.individual_drug_moop = attributes[:'individual_drug_moop'] end if attributes.has_key?(:'individual_medical_deductible') self.individual_medical_deductible = attributes[:'individual_medical_deductible'] end if attributes.has_key?(:'individual_medical_moop') self.individual_medical_moop = attributes[:'individual_medical_moop'] end if attributes.has_key?(:'inpatient_birth') self.inpatient_birth = attributes[:'inpatient_birth'] end if attributes.has_key?(:'inpatient_facility') self.inpatient_facility = attributes[:'inpatient_facility'] end if attributes.has_key?(:'inpatient_mental_health') self.inpatient_mental_health = attributes[:'inpatient_mental_health'] end if attributes.has_key?(:'inpatient_physician') self.inpatient_physician = attributes[:'inpatient_physician'] end if attributes.has_key?(:'inpatient_substance') self.inpatient_substance = attributes[:'inpatient_substance'] end if attributes.has_key?(:'lab_test') self.lab_test = attributes[:'lab_test'] end if attributes.has_key?(:'level') self.level = attributes[:'level'] end if attributes.has_key?(:'logo_url') self.logo_url = attributes[:'logo_url'] end if attributes.has_key?(:'mail_order_rx') self.mail_order_rx = attributes[:'mail_order_rx'] end if attributes.has_key?(:'name') self.name = attributes[:'name'] end if attributes.has_key?(:'network_ids') if (value = attributes[:'network_ids']).is_a?(Array) self.network_ids = value end end if attributes.has_key?(:'network_size') self.network_size = attributes[:'network_size'] end if attributes.has_key?(:'networks') if (value = attributes[:'networks']).is_a?(Array) self.networks = value end end if attributes.has_key?(:'non_preferred_brand_drugs') self.non_preferred_brand_drugs = attributes[:'non_preferred_brand_drugs'] end if attributes.has_key?(:'nonpreferred_generic_drug_share') self.nonpreferred_generic_drug_share = attributes[:'nonpreferred_generic_drug_share'] end if attributes.has_key?(:'nonpreferred_specialty_drug_share') self.nonpreferred_specialty_drug_share = attributes[:'nonpreferred_specialty_drug_share'] end if attributes.has_key?(:'off_market') self.off_market = attributes[:'off_market'] end if attributes.has_key?(:'on_market') self.on_market = attributes[:'on_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_ambulatory_care_center') self.outpatient_ambulatory_care_center = attributes[:'outpatient_ambulatory_care_center'] end if attributes.has_key?(:'outpatient_facility') self.outpatient_facility = attributes[:'outpatient_facility'] end if attributes.has_key?(:'outpatient_mental_health') self.outpatient_mental_health = attributes[:'outpatient_mental_health'] end if attributes.has_key?(:'outpatient_physician') self.outpatient_physician = attributes[:'outpatient_physician'] end if attributes.has_key?(:'outpatient_substance') self.outpatient_substance = attributes[:'outpatient_substance'] end if attributes.has_key?(:'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?(:'postnatal_care') self.postnatal_care = attributes[:'postnatal_care'] end if attributes.has_key?(:'preferred_brand_drugs') self.preferred_brand_drugs = attributes[:'preferred_brand_drugs'] end if attributes.has_key?(:'prenatal_care') self.prenatal_care = attributes[:'prenatal_care'] end if attributes.has_key?(:'prenatal_postnatal_care') self.prenatal_postnatal_care = attributes[:'prenatal_postnatal_care'] end if attributes.has_key?(:'preventative_care') self.preventative_care = attributes[:'preventative_care'] end if attributes.has_key?(:'primary_care_physician') self.primary_care_physician = attributes[:'primary_care_physician'] end if attributes.has_key?(:'rehabilitation_services') self.rehabilitation_services = attributes[:'rehabilitation_services'] end if attributes.has_key?(:'service_area_id') self.service_area_id = attributes[:'service_area_id'] end if attributes.has_key?(:'skilled_nursing') self.skilled_nursing = attributes[:'skilled_nursing'] 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?(:'specialist') self.specialist = attributes[:'specialist'] end if attributes.has_key?(:'specialty_drugs') self.specialty_drugs = attributes[:'specialty_drugs'] end if attributes.has_key?(:'type') self.type = attributes[:'type'] end if attributes.has_key?(:'updated_at') self.updated_at = attributes[:'updated_at'] end if attributes.has_key?(:'urgent_care') self.urgent_care = attributes[:'urgent_care'] end end
Attribute type mapping.
# File lib/vericred_client/models/aca_plan_pre2018_bulk.rb, line 1373 def self.swagger_types { :'actuarial_value' => :'Float', :'adult_dental' => :'BOOLEAN', :'age29_rider' => :'BOOLEAN', :'ambulance' => :'String', :'benefits_summary_url' => :'String', :'buy_link' => :'String', :'carrier_disclaimers' => :'String', :'carrier_name' => :'String', :'child_dental' => :'String', :'child_eye_exam' => :'String', :'child_eyewear' => :'String', :'chiropractic_services' => :'BOOLEAN', :'coinsurance' => :'Float', :'customer_service_phone_number' => :'String', :'diagnostic_test' => :'String', :'display_name' => :'String', :'dp_rider' => :'BOOLEAN', :'drug_formulary_url' => :'String', :'durable_medical_equipment' => :'String', :'effective_date' => :'String', :'embedded_deductible' => :'String', :'emergency_room' => :'String', :'expiration_date' => :'String', :'family_drug_deductible' => :'String', :'family_drug_moop' => :'String', :'family_medical_deductible' => :'String', :'family_medical_moop' => :'String', :'fp_rider' => :'BOOLEAN', :'gated' => :'BOOLEAN', :'generic_drugs' => :'String', :'habilitation_services' => :'String', :'hios_issuer_id' => :'String', :'home_health_care' => :'String', :'hospice_service' => :'String', :'hsa_eligible' => :'BOOLEAN', :'id' => :'String', :'identifiers' => :'Array<PlanIdentifier>', :'imaging' => :'String', :'imaging_center' => :'String', :'imaging_physician' => :'String', :'individual_drug_deductible' => :'String', :'individual_drug_moop' => :'String', :'individual_medical_deductible' => :'String', :'individual_medical_moop' => :'String', :'inpatient_birth' => :'String', :'inpatient_facility' => :'String', :'inpatient_mental_health' => :'String', :'inpatient_physician' => :'String', :'inpatient_substance' => :'String', :'lab_test' => :'String', :'level' => :'String', :'logo_url' => :'String', :'mail_order_rx' => :'Float', :'name' => :'String', :'network_ids' => :'Array<Integer>', :'network_size' => :'Integer', :'networks' => :'Array<PlanNetwork>', :'non_preferred_brand_drugs' => :'String', :'nonpreferred_generic_drug_share' => :'String', :'nonpreferred_specialty_drug_share' => :'String', :'off_market' => :'BOOLEAN', :'on_market' => :'BOOLEAN', :'out_of_network_coverage' => :'BOOLEAN', :'outpatient_ambulatory_care_center' => :'String', :'outpatient_facility' => :'String', :'outpatient_mental_health' => :'String', :'outpatient_physician' => :'String', :'outpatient_substance' => :'String', :'plan_calendar' => :'String', :'plan_market' => :'String', :'plan_type' => :'String', :'postnatal_care' => :'String', :'preferred_brand_drugs' => :'String', :'prenatal_care' => :'String', :'prenatal_postnatal_care' => :'String', :'preventative_care' => :'String', :'primary_care_physician' => :'String', :'rehabilitation_services' => :'String', :'service_area_id' => :'String', :'skilled_nursing' => :'String', :'skilled_nursing_facility_365' => :'String', :'source' => :'String', :'specialist' => :'String', :'specialty_drugs' => :'String', :'type' => :'String', :'updated_at' => :'String', :'urgent_care' => :'String' } end
Public Instance Methods
Checks equality by comparing each attribute. @param [Object] Object to be compared
# File lib/vericred_client/models/aca_plan_pre2018_bulk.rb, line 1844 def ==(o) return true if self.equal?(o) self.class == o.class && actuarial_value == o.actuarial_value && adult_dental == o.adult_dental && age29_rider == o.age29_rider && ambulance == o.ambulance && benefits_summary_url == o.benefits_summary_url && buy_link == o.buy_link && carrier_disclaimers == o.carrier_disclaimers && carrier_name == o.carrier_name && child_dental == o.child_dental && child_eye_exam == o.child_eye_exam && child_eyewear == o.child_eyewear && chiropractic_services == o.chiropractic_services && coinsurance == o.coinsurance && customer_service_phone_number == o.customer_service_phone_number && diagnostic_test == o.diagnostic_test && display_name == o.display_name && dp_rider == o.dp_rider && drug_formulary_url == o.drug_formulary_url && durable_medical_equipment == o.durable_medical_equipment && effective_date == o.effective_date && embedded_deductible == o.embedded_deductible && emergency_room == o.emergency_room && expiration_date == o.expiration_date && 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 && fp_rider == o.fp_rider && gated == o.gated && generic_drugs == o.generic_drugs && habilitation_services == o.habilitation_services && hios_issuer_id == o.hios_issuer_id && home_health_care == o.home_health_care && hospice_service == o.hospice_service && hsa_eligible == o.hsa_eligible && id == o.id && identifiers == o.identifiers && imaging == o.imaging && imaging_center == o.imaging_center && imaging_physician == o.imaging_physician && individual_drug_deductible == o.individual_drug_deductible && individual_drug_moop == o.individual_drug_moop && individual_medical_deductible == o.individual_medical_deductible && individual_medical_moop == o.individual_medical_moop && inpatient_birth == o.inpatient_birth && inpatient_facility == o.inpatient_facility && inpatient_mental_health == o.inpatient_mental_health && inpatient_physician == o.inpatient_physician && inpatient_substance == o.inpatient_substance && lab_test == o.lab_test && level == o.level && logo_url == o.logo_url && mail_order_rx == o.mail_order_rx && name == o.name && network_ids == o.network_ids && network_size == o.network_size && networks == o.networks && non_preferred_brand_drugs == o.non_preferred_brand_drugs && nonpreferred_generic_drug_share == o.nonpreferred_generic_drug_share && nonpreferred_specialty_drug_share == o.nonpreferred_specialty_drug_share && off_market == o.off_market && on_market == o.on_market && out_of_network_coverage == o.out_of_network_coverage && outpatient_ambulatory_care_center == o.outpatient_ambulatory_care_center && outpatient_facility == o.outpatient_facility && outpatient_mental_health == o.outpatient_mental_health && outpatient_physician == o.outpatient_physician && outpatient_substance == o.outpatient_substance && plan_calendar == o.plan_calendar && plan_market == o.plan_market && plan_type == o.plan_type && postnatal_care == o.postnatal_care && preferred_brand_drugs == o.preferred_brand_drugs && prenatal_care == o.prenatal_care && prenatal_postnatal_care == o.prenatal_postnatal_care && preventative_care == o.preventative_care && primary_care_physician == o.primary_care_physician && rehabilitation_services == o.rehabilitation_services && service_area_id == o.service_area_id && skilled_nursing == o.skilled_nursing && skilled_nursing_facility_365 == o.skilled_nursing_facility_365 && source == o.source && specialist == o.specialist && specialty_drugs == o.specialty_drugs && type == o.type && updated_at == o.updated_at && urgent_care == o.urgent_care end
Deserializes the data based on type @param string type Data type @param string value Value to be deserialized @return [Object] Deserialized data
# File lib/vericred_client/models/aca_plan_pre2018_bulk.rb, line 1972 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
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value @param [Object] value Any valid value @return [Hash] Returns the value in the form of hash
# File lib/vericred_client/models/aca_plan_pre2018_bulk.rb, line 2038 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
Builds the object from hash @param [Hash] attributes Model attributes in the form of hash @return [Object] Returns the model itself
# File lib/vericred_client/models/aca_plan_pre2018_bulk.rb, line 1951 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
@see the `==` method @param [Object] Object to be compared
# File lib/vericred_client/models/aca_plan_pre2018_bulk.rb, line 1938 def eql?(o) self == o end
Calculates hash code according to all attributes. @return [Fixnum] Hash code
# File lib/vericred_client/models/aca_plan_pre2018_bulk.rb, line 1944 def hash [actuarial_value, adult_dental, age29_rider, ambulance, benefits_summary_url, buy_link, carrier_disclaimers, carrier_name, child_dental, child_eye_exam, child_eyewear, chiropractic_services, coinsurance, customer_service_phone_number, diagnostic_test, display_name, dp_rider, drug_formulary_url, durable_medical_equipment, effective_date, embedded_deductible, emergency_room, expiration_date, family_drug_deductible, family_drug_moop, family_medical_deductible, family_medical_moop, fp_rider, gated, generic_drugs, habilitation_services, hios_issuer_id, home_health_care, hospice_service, hsa_eligible, id, identifiers, imaging, imaging_center, imaging_physician, individual_drug_deductible, individual_drug_moop, individual_medical_deductible, individual_medical_moop, inpatient_birth, inpatient_facility, inpatient_mental_health, inpatient_physician, inpatient_substance, lab_test, level, logo_url, mail_order_rx, name, network_ids, network_size, networks, non_preferred_brand_drugs, nonpreferred_generic_drug_share, nonpreferred_specialty_drug_share, off_market, on_market, out_of_network_coverage, outpatient_ambulatory_care_center, outpatient_facility, outpatient_mental_health, outpatient_physician, outpatient_substance, plan_calendar, plan_market, plan_type, postnatal_care, preferred_brand_drugs, prenatal_care, prenatal_postnatal_care, preventative_care, primary_care_physician, rehabilitation_services, service_area_id, skilled_nursing, skilled_nursing_facility_365, source, specialist, specialty_drugs, type, updated_at, urgent_care].hash end
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properies with the reasons
# File lib/vericred_client/models/aca_plan_pre2018_bulk.rb, line 1831 def list_invalid_properties invalid_properties = Array.new return invalid_properties end
Returns the object in the form of hash @return [Hash] Returns the object in the form of hash
# File lib/vericred_client/models/aca_plan_pre2018_bulk.rb, line 2024 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
Returns the string representation of the object @return [String] String presentation of the object
# File lib/vericred_client/models/aca_plan_pre2018_bulk.rb, line 2012 def to_s to_hash.to_s end
Check to see if the all the properties in the model are valid @return true if the model is valid
# File lib/vericred_client/models/aca_plan_pre2018_bulk.rb, line 1838 def valid? return true end