class VericredClient::RateSearch

Attributes

age_0[RW]

Rate for age 0

age_0_tobacco[RW]

Tobacco rate for age 0

age_1[RW]

Rate for age 1

age_10[RW]

Rate for age 10

age_10_tobacco[RW]

Tobacco rate for age 10

age_11[RW]

Rate for age 11

age_11_tobacco[RW]

Tobacco rate for age 11

age_12[RW]

Rate for age 12

age_12_tobacco[RW]

Tobacco rate for age 12

age_13[RW]

Rate for age 13

age_13_tobacco[RW]

Tobacco rate for age 13

age_14[RW]

Rate for age 14

age_14_tobacco[RW]

Tobacco rate for age 14

age_15[RW]

Rate for age 15

age_15_tobacco[RW]

Tobacco rate for age 15

age_16[RW]

Rate for age 16

age_16_tobacco[RW]

Tobacco rate for age 16

age_17[RW]

Rate for age 17

age_17_tobacco[RW]

Tobacco rate for age 17

age_18[RW]

Rate for age 18

age_18_tobacco[RW]

Tobacco rate for age 18

age_19[RW]

Rate for age 19

age_19_tobacco[RW]

Tobacco rate for age 19

age_1_tobacco[RW]

Tobacco rate for age 1

age_2[RW]

Rate for age 2

age_20[RW]

Rate for age 20

age_20_tobacco[RW]

Tobacco rate for age 20

age_21[RW]

Rate for age 21

age_21_tobacco[RW]

Tobacco rate for age 21

age_22[RW]

Rate for age 22

age_22_tobacco[RW]

Tobacco rate for age 22

age_23[RW]

Rate for age 23

age_23_tobacco[RW]

Tobacco rate for age 23

age_24[RW]

Rate for age 24

age_24_tobacco[RW]

Tobacco rate for age 24

age_25[RW]

Rate for age 25

age_25_tobacco[RW]

Tobacco rate for age 25

age_26[RW]

Rate for age 26

age_26_tobacco[RW]

Tobacco rate for age 26

age_27[RW]

Rate for age 27

age_27_tobacco[RW]

Tobacco rate for age 27

age_28[RW]

Rate for age 28

age_28_tobacco[RW]

Tobacco rate for age 28

age_29[RW]

Rate for age 29

age_29_tobacco[RW]

Tobacco rate for age 29

age_2_tobacco[RW]

Tobacco rate for age 2

age_3[RW]

Rate for age 3

age_30[RW]

Rate for age 30

age_30_tobacco[RW]

Tobacco rate for age 30

age_31[RW]

Rate for age 31

age_31_tobacco[RW]

Tobacco rate for age 31

age_32[RW]

Rate for age 32

age_32_tobacco[RW]

Tobacco rate for age 32

age_33[RW]

Rate for age 33

age_33_tobacco[RW]

Tobacco rate for age 33

age_34[RW]

Rate for age 34

age_34_tobacco[RW]

Tobacco rate for age 34

age_35[RW]

Rate for age 35

age_35_tobacco[RW]

Tobacco rate for age 35

age_36[RW]

Rate for age 36

age_36_tobacco[RW]

Tobacco rate for age 36

age_37[RW]

Rate for age 37

age_37_tobacco[RW]

Tobacco rate for age 37

age_38[RW]

Rate for age 38

age_38_tobacco[RW]

Tobacco rate for age 38

age_39[RW]

Rate for age 39

age_39_tobacco[RW]

Tobacco rate for age 39

age_3_tobacco[RW]

Tobacco rate for age 3

age_4[RW]

Rate for age 4

age_40[RW]

Rate for age 40

age_40_tobacco[RW]

Tobacco rate for age 40

age_41[RW]

Rate for age 41

age_41_tobacco[RW]

Tobacco rate for age 41

age_42[RW]

Rate for age 42

age_42_tobacco[RW]

Tobacco rate for age 42

age_43[RW]

Rate for age 43

age_43_tobacco[RW]

Tobacco rate for age 43

age_44[RW]

Rate for age 44

age_44_tobacco[RW]

Tobacco rate for age 44

age_45[RW]

Rate for age 45

age_45_tobacco[RW]

Tobacco rate for age 45

age_46[RW]

Rate for age 46

age_46_tobacco[RW]

Tobacco rate for age 46

age_47[RW]

Rate for age 47

age_47_tobacco[RW]

Tobacco rate for age 47

age_48[RW]

Rate for age 48

age_48_tobacco[RW]

Tobacco rate for age 48

age_49[RW]

Rate for age 49

age_49_tobacco[RW]

Tobacco rate for age 49

age_4_tobacco[RW]

Tobacco rate for age 4

age_5[RW]

Rate for age 5

age_50[RW]

Rate for age 50

age_50_tobacco[RW]

Tobacco rate for age 50

age_51[RW]

Rate for age 51

age_51_tobacco[RW]

Tobacco rate for age 51

age_52[RW]

Rate for age 52

age_52_tobacco[RW]

Tobacco rate for age 52

age_53[RW]

Rate for age 53

age_53_tobacco[RW]

Tobacco rate for age 53

age_54[RW]

Rate for age 54

age_54_tobacco[RW]

Tobacco rate for age 54

age_55[RW]

Rate for age 55

age_55_tobacco[RW]

Tobacco rate for age 55

age_56[RW]

Rate for age 56

age_56_tobacco[RW]

Tobacco rate for age 56

age_57[RW]

Rate for age 57

age_57_tobacco[RW]

Tobacco rate for age 57

age_58[RW]

Rate for age 58

age_58_tobacco[RW]

Tobacco rate for age 58

age_59[RW]

Rate for age 59

age_59_tobacco[RW]

Tobacco rate for age 59

age_5_tobacco[RW]

Tobacco rate for age 5

age_6[RW]

Rate for age 6

age_60[RW]

Rate for age 60

age_60_tobacco[RW]

Tobacco rate for age 60

age_61[RW]

Rate for age 61

age_61_tobacco[RW]

Tobacco rate for age 61

age_62[RW]

Rate for age 62

age_62_tobacco[RW]

Tobacco rate for age 62

age_63[RW]

Rate for age 63

age_63_tobacco[RW]

Tobacco rate for age 63

age_64[RW]

Rate for age 64

age_64_tobacco[RW]

Tobacco rate for age 64

age_65[RW]

Rate for age 65

age_65_tobacco[RW]

Tobacco rate for age 65

age_6_tobacco[RW]

Tobacco rate for age 6

age_7[RW]

Rate for age 7

age_7_tobacco[RW]

Tobacco rate for age 7

age_8[RW]

Rate for age 8

age_8_tobacco[RW]

Tobacco rate for age 8

age_9[RW]

Rate for age 9

age_9_tobacco[RW]

Tobacco rate for age 9

child_only[RW]

Fixed-family-tier rate for child_only

effective_date[RW]

First date on which the rate is effective

expiration_date[RW]

Last date on which the rate is effective

family[RW]

Fixed-family-tier rate for family

plan_id[RW]

Foreign key to the plan

single[RW]

Fixed-family-tier rate for single

single_and_children[RW]

Fixed-family-tier rate for single_and_children

single_and_spouse[RW]

Fixed-family-tier rate for single_and_spouse

source[RW]

Data source for the rate

Public Class Methods

attribute_map() click to toggle source

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

# File lib/vericred_client/models/rate_search.rb, line 1442
def self.attribute_map
  {
    :'age_0' => :'age_0',
    :'age_0_tobacco' => :'age_0_tobacco',
    :'age_1' => :'age_1',
    :'age_10' => :'age_10',
    :'age_10_tobacco' => :'age_10_tobacco',
    :'age_11' => :'age_11',
    :'age_11_tobacco' => :'age_11_tobacco',
    :'age_12' => :'age_12',
    :'age_12_tobacco' => :'age_12_tobacco',
    :'age_13' => :'age_13',
    :'age_13_tobacco' => :'age_13_tobacco',
    :'age_14' => :'age_14',
    :'age_14_tobacco' => :'age_14_tobacco',
    :'age_15' => :'age_15',
    :'age_15_tobacco' => :'age_15_tobacco',
    :'age_16' => :'age_16',
    :'age_16_tobacco' => :'age_16_tobacco',
    :'age_17' => :'age_17',
    :'age_17_tobacco' => :'age_17_tobacco',
    :'age_18' => :'age_18',
    :'age_18_tobacco' => :'age_18_tobacco',
    :'age_19' => :'age_19',
    :'age_19_tobacco' => :'age_19_tobacco',
    :'age_1_tobacco' => :'age_1_tobacco',
    :'age_2' => :'age_2',
    :'age_20' => :'age_20',
    :'age_20_tobacco' => :'age_20_tobacco',
    :'age_21' => :'age_21',
    :'age_21_tobacco' => :'age_21_tobacco',
    :'age_22' => :'age_22',
    :'age_22_tobacco' => :'age_22_tobacco',
    :'age_23' => :'age_23',
    :'age_23_tobacco' => :'age_23_tobacco',
    :'age_24' => :'age_24',
    :'age_24_tobacco' => :'age_24_tobacco',
    :'age_25' => :'age_25',
    :'age_25_tobacco' => :'age_25_tobacco',
    :'age_26' => :'age_26',
    :'age_26_tobacco' => :'age_26_tobacco',
    :'age_27' => :'age_27',
    :'age_27_tobacco' => :'age_27_tobacco',
    :'age_28' => :'age_28',
    :'age_28_tobacco' => :'age_28_tobacco',
    :'age_29' => :'age_29',
    :'age_29_tobacco' => :'age_29_tobacco',
    :'age_2_tobacco' => :'age_2_tobacco',
    :'age_3' => :'age_3',
    :'age_30' => :'age_30',
    :'age_30_tobacco' => :'age_30_tobacco',
    :'age_31' => :'age_31',
    :'age_31_tobacco' => :'age_31_tobacco',
    :'age_32' => :'age_32',
    :'age_32_tobacco' => :'age_32_tobacco',
    :'age_33' => :'age_33',
    :'age_33_tobacco' => :'age_33_tobacco',
    :'age_34' => :'age_34',
    :'age_34_tobacco' => :'age_34_tobacco',
    :'age_35' => :'age_35',
    :'age_35_tobacco' => :'age_35_tobacco',
    :'age_36' => :'age_36',
    :'age_36_tobacco' => :'age_36_tobacco',
    :'age_37' => :'age_37',
    :'age_37_tobacco' => :'age_37_tobacco',
    :'age_38' => :'age_38',
    :'age_38_tobacco' => :'age_38_tobacco',
    :'age_39' => :'age_39',
    :'age_39_tobacco' => :'age_39_tobacco',
    :'age_3_tobacco' => :'age_3_tobacco',
    :'age_4' => :'age_4',
    :'age_40' => :'age_40',
    :'age_40_tobacco' => :'age_40_tobacco',
    :'age_41' => :'age_41',
    :'age_41_tobacco' => :'age_41_tobacco',
    :'age_42' => :'age_42',
    :'age_42_tobacco' => :'age_42_tobacco',
    :'age_43' => :'age_43',
    :'age_43_tobacco' => :'age_43_tobacco',
    :'age_44' => :'age_44',
    :'age_44_tobacco' => :'age_44_tobacco',
    :'age_45' => :'age_45',
    :'age_45_tobacco' => :'age_45_tobacco',
    :'age_46' => :'age_46',
    :'age_46_tobacco' => :'age_46_tobacco',
    :'age_47' => :'age_47',
    :'age_47_tobacco' => :'age_47_tobacco',
    :'age_48' => :'age_48',
    :'age_48_tobacco' => :'age_48_tobacco',
    :'age_49' => :'age_49',
    :'age_49_tobacco' => :'age_49_tobacco',
    :'age_4_tobacco' => :'age_4_tobacco',
    :'age_5' => :'age_5',
    :'age_50' => :'age_50',
    :'age_50_tobacco' => :'age_50_tobacco',
    :'age_51' => :'age_51',
    :'age_51_tobacco' => :'age_51_tobacco',
    :'age_52' => :'age_52',
    :'age_52_tobacco' => :'age_52_tobacco',
    :'age_53' => :'age_53',
    :'age_53_tobacco' => :'age_53_tobacco',
    :'age_54' => :'age_54',
    :'age_54_tobacco' => :'age_54_tobacco',
    :'age_55' => :'age_55',
    :'age_55_tobacco' => :'age_55_tobacco',
    :'age_56' => :'age_56',
    :'age_56_tobacco' => :'age_56_tobacco',
    :'age_57' => :'age_57',
    :'age_57_tobacco' => :'age_57_tobacco',
    :'age_58' => :'age_58',
    :'age_58_tobacco' => :'age_58_tobacco',
    :'age_59' => :'age_59',
    :'age_59_tobacco' => :'age_59_tobacco',
    :'age_5_tobacco' => :'age_5_tobacco',
    :'age_6' => :'age_6',
    :'age_60' => :'age_60',
    :'age_60_tobacco' => :'age_60_tobacco',
    :'age_61' => :'age_61',
    :'age_61_tobacco' => :'age_61_tobacco',
    :'age_62' => :'age_62',
    :'age_62_tobacco' => :'age_62_tobacco',
    :'age_63' => :'age_63',
    :'age_63_tobacco' => :'age_63_tobacco',
    :'age_64' => :'age_64',
    :'age_64_tobacco' => :'age_64_tobacco',
    :'age_65' => :'age_65',
    :'age_65_tobacco' => :'age_65_tobacco',
    :'age_6_tobacco' => :'age_6_tobacco',
    :'age_7' => :'age_7',
    :'age_7_tobacco' => :'age_7_tobacco',
    :'age_8' => :'age_8',
    :'age_8_tobacco' => :'age_8_tobacco',
    :'age_9' => :'age_9',
    :'age_9_tobacco' => :'age_9_tobacco',
    :'child_only' => :'child_only',
    :'effective_date' => :'effective_date',
    :'expiration_date' => :'expiration_date',
    :'family' => :'family',
    :'plan_id' => :'plan_id',
    :'single' => :'single',
    :'single_and_children' => :'single_and_children',
    :'single_and_spouse' => :'single_and_spouse',
    :'source' => :'source'
  }
end
new(attributes = {}) click to toggle source

Initializes the object @param [Hash] attributes Model attributes in the form of hash

# File lib/vericred_client/models/rate_search.rb, line 1737
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?(:'age_0')
    self.age_0 = attributes[:'age_0']
  end

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

end
swagger_types() click to toggle source

Attribute type mapping.

# File lib/vericred_client/models/rate_search.rb, line 1589
def self.swagger_types
  {
    :'age_0' => :'Float',
    :'age_0_tobacco' => :'Float',
    :'age_1' => :'Float',
    :'age_10' => :'Float',
    :'age_10_tobacco' => :'Float',
    :'age_11' => :'Float',
    :'age_11_tobacco' => :'Float',
    :'age_12' => :'Float',
    :'age_12_tobacco' => :'Float',
    :'age_13' => :'Float',
    :'age_13_tobacco' => :'Float',
    :'age_14' => :'Float',
    :'age_14_tobacco' => :'Float',
    :'age_15' => :'Float',
    :'age_15_tobacco' => :'Float',
    :'age_16' => :'Float',
    :'age_16_tobacco' => :'Float',
    :'age_17' => :'Float',
    :'age_17_tobacco' => :'Float',
    :'age_18' => :'Float',
    :'age_18_tobacco' => :'Float',
    :'age_19' => :'Float',
    :'age_19_tobacco' => :'Float',
    :'age_1_tobacco' => :'Float',
    :'age_2' => :'Float',
    :'age_20' => :'Float',
    :'age_20_tobacco' => :'Float',
    :'age_21' => :'Float',
    :'age_21_tobacco' => :'Float',
    :'age_22' => :'Float',
    :'age_22_tobacco' => :'Float',
    :'age_23' => :'Float',
    :'age_23_tobacco' => :'Float',
    :'age_24' => :'Float',
    :'age_24_tobacco' => :'Float',
    :'age_25' => :'Float',
    :'age_25_tobacco' => :'Float',
    :'age_26' => :'Float',
    :'age_26_tobacco' => :'Float',
    :'age_27' => :'Float',
    :'age_27_tobacco' => :'Float',
    :'age_28' => :'Float',
    :'age_28_tobacco' => :'Float',
    :'age_29' => :'Float',
    :'age_29_tobacco' => :'Float',
    :'age_2_tobacco' => :'Float',
    :'age_3' => :'Float',
    :'age_30' => :'Float',
    :'age_30_tobacco' => :'Float',
    :'age_31' => :'Float',
    :'age_31_tobacco' => :'Float',
    :'age_32' => :'Float',
    :'age_32_tobacco' => :'Float',
    :'age_33' => :'Float',
    :'age_33_tobacco' => :'Float',
    :'age_34' => :'Float',
    :'age_34_tobacco' => :'Float',
    :'age_35' => :'Float',
    :'age_35_tobacco' => :'Float',
    :'age_36' => :'Float',
    :'age_36_tobacco' => :'Float',
    :'age_37' => :'Float',
    :'age_37_tobacco' => :'Float',
    :'age_38' => :'Float',
    :'age_38_tobacco' => :'Float',
    :'age_39' => :'Float',
    :'age_39_tobacco' => :'Float',
    :'age_3_tobacco' => :'Float',
    :'age_4' => :'Float',
    :'age_40' => :'Float',
    :'age_40_tobacco' => :'Float',
    :'age_41' => :'Float',
    :'age_41_tobacco' => :'Float',
    :'age_42' => :'Float',
    :'age_42_tobacco' => :'Float',
    :'age_43' => :'Float',
    :'age_43_tobacco' => :'Float',
    :'age_44' => :'Float',
    :'age_44_tobacco' => :'Float',
    :'age_45' => :'Float',
    :'age_45_tobacco' => :'Float',
    :'age_46' => :'Float',
    :'age_46_tobacco' => :'Float',
    :'age_47' => :'Float',
    :'age_47_tobacco' => :'Float',
    :'age_48' => :'Float',
    :'age_48_tobacco' => :'Float',
    :'age_49' => :'Float',
    :'age_49_tobacco' => :'Float',
    :'age_4_tobacco' => :'Float',
    :'age_5' => :'Float',
    :'age_50' => :'Float',
    :'age_50_tobacco' => :'Float',
    :'age_51' => :'Float',
    :'age_51_tobacco' => :'Float',
    :'age_52' => :'Float',
    :'age_52_tobacco' => :'Float',
    :'age_53' => :'Float',
    :'age_53_tobacco' => :'Float',
    :'age_54' => :'Float',
    :'age_54_tobacco' => :'Float',
    :'age_55' => :'Float',
    :'age_55_tobacco' => :'Float',
    :'age_56' => :'Float',
    :'age_56_tobacco' => :'Float',
    :'age_57' => :'Float',
    :'age_57_tobacco' => :'Float',
    :'age_58' => :'Float',
    :'age_58_tobacco' => :'Float',
    :'age_59' => :'Float',
    :'age_59_tobacco' => :'Float',
    :'age_5_tobacco' => :'Float',
    :'age_6' => :'Float',
    :'age_60' => :'Float',
    :'age_60_tobacco' => :'Float',
    :'age_61' => :'Float',
    :'age_61_tobacco' => :'Float',
    :'age_62' => :'Float',
    :'age_62_tobacco' => :'Float',
    :'age_63' => :'Float',
    :'age_63_tobacco' => :'Float',
    :'age_64' => :'Float',
    :'age_64_tobacco' => :'Float',
    :'age_65' => :'Float',
    :'age_65_tobacco' => :'Float',
    :'age_6_tobacco' => :'Float',
    :'age_7' => :'Float',
    :'age_7_tobacco' => :'Float',
    :'age_8' => :'Float',
    :'age_8_tobacco' => :'Float',
    :'age_9' => :'Float',
    :'age_9_tobacco' => :'Float',
    :'child_only' => :'Float',
    :'effective_date' => :'Date',
    :'expiration_date' => :'Date',
    :'family' => :'Float',
    :'plan_id' => :'String',
    :'single' => :'Float',
    :'single_and_children' => :'Float',
    :'single_and_spouse' => :'Float',
    :'source' => :'String'
  }
end

Public Instance Methods

==(o) click to toggle source

Checks equality by comparing each attribute. @param [Object] Object to be compared

# File lib/vericred_client/models/rate_search.rb, line 2324
def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      age_0 == o.age_0 &&
      age_0_tobacco == o.age_0_tobacco &&
      age_1 == o.age_1 &&
      age_10 == o.age_10 &&
      age_10_tobacco == o.age_10_tobacco &&
      age_11 == o.age_11 &&
      age_11_tobacco == o.age_11_tobacco &&
      age_12 == o.age_12 &&
      age_12_tobacco == o.age_12_tobacco &&
      age_13 == o.age_13 &&
      age_13_tobacco == o.age_13_tobacco &&
      age_14 == o.age_14 &&
      age_14_tobacco == o.age_14_tobacco &&
      age_15 == o.age_15 &&
      age_15_tobacco == o.age_15_tobacco &&
      age_16 == o.age_16 &&
      age_16_tobacco == o.age_16_tobacco &&
      age_17 == o.age_17 &&
      age_17_tobacco == o.age_17_tobacco &&
      age_18 == o.age_18 &&
      age_18_tobacco == o.age_18_tobacco &&
      age_19 == o.age_19 &&
      age_19_tobacco == o.age_19_tobacco &&
      age_1_tobacco == o.age_1_tobacco &&
      age_2 == o.age_2 &&
      age_20 == o.age_20 &&
      age_20_tobacco == o.age_20_tobacco &&
      age_21 == o.age_21 &&
      age_21_tobacco == o.age_21_tobacco &&
      age_22 == o.age_22 &&
      age_22_tobacco == o.age_22_tobacco &&
      age_23 == o.age_23 &&
      age_23_tobacco == o.age_23_tobacco &&
      age_24 == o.age_24 &&
      age_24_tobacco == o.age_24_tobacco &&
      age_25 == o.age_25 &&
      age_25_tobacco == o.age_25_tobacco &&
      age_26 == o.age_26 &&
      age_26_tobacco == o.age_26_tobacco &&
      age_27 == o.age_27 &&
      age_27_tobacco == o.age_27_tobacco &&
      age_28 == o.age_28 &&
      age_28_tobacco == o.age_28_tobacco &&
      age_29 == o.age_29 &&
      age_29_tobacco == o.age_29_tobacco &&
      age_2_tobacco == o.age_2_tobacco &&
      age_3 == o.age_3 &&
      age_30 == o.age_30 &&
      age_30_tobacco == o.age_30_tobacco &&
      age_31 == o.age_31 &&
      age_31_tobacco == o.age_31_tobacco &&
      age_32 == o.age_32 &&
      age_32_tobacco == o.age_32_tobacco &&
      age_33 == o.age_33 &&
      age_33_tobacco == o.age_33_tobacco &&
      age_34 == o.age_34 &&
      age_34_tobacco == o.age_34_tobacco &&
      age_35 == o.age_35 &&
      age_35_tobacco == o.age_35_tobacco &&
      age_36 == o.age_36 &&
      age_36_tobacco == o.age_36_tobacco &&
      age_37 == o.age_37 &&
      age_37_tobacco == o.age_37_tobacco &&
      age_38 == o.age_38 &&
      age_38_tobacco == o.age_38_tobacco &&
      age_39 == o.age_39 &&
      age_39_tobacco == o.age_39_tobacco &&
      age_3_tobacco == o.age_3_tobacco &&
      age_4 == o.age_4 &&
      age_40 == o.age_40 &&
      age_40_tobacco == o.age_40_tobacco &&
      age_41 == o.age_41 &&
      age_41_tobacco == o.age_41_tobacco &&
      age_42 == o.age_42 &&
      age_42_tobacco == o.age_42_tobacco &&
      age_43 == o.age_43 &&
      age_43_tobacco == o.age_43_tobacco &&
      age_44 == o.age_44 &&
      age_44_tobacco == o.age_44_tobacco &&
      age_45 == o.age_45 &&
      age_45_tobacco == o.age_45_tobacco &&
      age_46 == o.age_46 &&
      age_46_tobacco == o.age_46_tobacco &&
      age_47 == o.age_47 &&
      age_47_tobacco == o.age_47_tobacco &&
      age_48 == o.age_48 &&
      age_48_tobacco == o.age_48_tobacco &&
      age_49 == o.age_49 &&
      age_49_tobacco == o.age_49_tobacco &&
      age_4_tobacco == o.age_4_tobacco &&
      age_5 == o.age_5 &&
      age_50 == o.age_50 &&
      age_50_tobacco == o.age_50_tobacco &&
      age_51 == o.age_51 &&
      age_51_tobacco == o.age_51_tobacco &&
      age_52 == o.age_52 &&
      age_52_tobacco == o.age_52_tobacco &&
      age_53 == o.age_53 &&
      age_53_tobacco == o.age_53_tobacco &&
      age_54 == o.age_54 &&
      age_54_tobacco == o.age_54_tobacco &&
      age_55 == o.age_55 &&
      age_55_tobacco == o.age_55_tobacco &&
      age_56 == o.age_56 &&
      age_56_tobacco == o.age_56_tobacco &&
      age_57 == o.age_57 &&
      age_57_tobacco == o.age_57_tobacco &&
      age_58 == o.age_58 &&
      age_58_tobacco == o.age_58_tobacco &&
      age_59 == o.age_59 &&
      age_59_tobacco == o.age_59_tobacco &&
      age_5_tobacco == o.age_5_tobacco &&
      age_6 == o.age_6 &&
      age_60 == o.age_60 &&
      age_60_tobacco == o.age_60_tobacco &&
      age_61 == o.age_61 &&
      age_61_tobacco == o.age_61_tobacco &&
      age_62 == o.age_62 &&
      age_62_tobacco == o.age_62_tobacco &&
      age_63 == o.age_63 &&
      age_63_tobacco == o.age_63_tobacco &&
      age_64 == o.age_64 &&
      age_64_tobacco == o.age_64_tobacco &&
      age_65 == o.age_65 &&
      age_65_tobacco == o.age_65_tobacco &&
      age_6_tobacco == o.age_6_tobacco &&
      age_7 == o.age_7 &&
      age_7_tobacco == o.age_7_tobacco &&
      age_8 == o.age_8 &&
      age_8_tobacco == o.age_8_tobacco &&
      age_9 == o.age_9 &&
      age_9_tobacco == o.age_9_tobacco &&
      child_only == o.child_only &&
      effective_date == o.effective_date &&
      expiration_date == o.expiration_date &&
      family == o.family &&
      plan_id == o.plan_id &&
      single == o.single &&
      single_and_children == o.single_and_children &&
      single_and_spouse == o.single_and_spouse &&
      source == o.source
end
_deserialize(type, value) click to toggle source

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/rate_search.rb, line 2506
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) click to toggle source

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/rate_search.rb, line 2572
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) click to toggle source

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/rate_search.rb, line 2485
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) click to toggle source

@see the `==` method @param [Object] Object to be compared

# File lib/vericred_client/models/rate_search.rb, line 2472
def eql?(o)
  self == o
end
hash() click to toggle source

Calculates hash code according to all attributes. @return [Fixnum] Hash code

# File lib/vericred_client/models/rate_search.rb, line 2478
def hash
  [age_0, age_0_tobacco, age_1, age_10, age_10_tobacco, age_11, age_11_tobacco, age_12, age_12_tobacco, age_13, age_13_tobacco, age_14, age_14_tobacco, age_15, age_15_tobacco, age_16, age_16_tobacco, age_17, age_17_tobacco, age_18, age_18_tobacco, age_19, age_19_tobacco, age_1_tobacco, age_2, age_20, age_20_tobacco, age_21, age_21_tobacco, age_22, age_22_tobacco, age_23, age_23_tobacco, age_24, age_24_tobacco, age_25, age_25_tobacco, age_26, age_26_tobacco, age_27, age_27_tobacco, age_28, age_28_tobacco, age_29, age_29_tobacco, age_2_tobacco, age_3, age_30, age_30_tobacco, age_31, age_31_tobacco, age_32, age_32_tobacco, age_33, age_33_tobacco, age_34, age_34_tobacco, age_35, age_35_tobacco, age_36, age_36_tobacco, age_37, age_37_tobacco, age_38, age_38_tobacco, age_39, age_39_tobacco, age_3_tobacco, age_4, age_40, age_40_tobacco, age_41, age_41_tobacco, age_42, age_42_tobacco, age_43, age_43_tobacco, age_44, age_44_tobacco, age_45, age_45_tobacco, age_46, age_46_tobacco, age_47, age_47_tobacco, age_48, age_48_tobacco, age_49, age_49_tobacco, age_4_tobacco, age_5, age_50, age_50_tobacco, age_51, age_51_tobacco, age_52, age_52_tobacco, age_53, age_53_tobacco, age_54, age_54_tobacco, age_55, age_55_tobacco, age_56, age_56_tobacco, age_57, age_57_tobacco, age_58, age_58_tobacco, age_59, age_59_tobacco, age_5_tobacco, age_6, age_60, age_60_tobacco, age_61, age_61_tobacco, age_62, age_62_tobacco, age_63, age_63_tobacco, age_64, age_64_tobacco, age_65, age_65_tobacco, age_6_tobacco, age_7, age_7_tobacco, age_8, age_8_tobacco, age_9, age_9_tobacco, child_only, effective_date, expiration_date, family, plan_id, single, single_and_children, single_and_spouse, source].hash
end
list_invalid_properties() click to toggle source

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properies with the reasons

# File lib/vericred_client/models/rate_search.rb, line 2311
def list_invalid_properties
  invalid_properties = Array.new
  return invalid_properties
end
to_body() click to toggle source

to_body is an alias to to_hash (backward compatibility) @return [Hash] Returns the object in the form of hash

# File lib/vericred_client/models/rate_search.rb, line 2552
def to_body
  to_hash
end
to_hash() click to toggle source

Returns the object in the form of hash @return [Hash] Returns the object in the form of hash

# File lib/vericred_client/models/rate_search.rb, line 2558
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() click to toggle source

Returns the string representation of the object @return [String] String presentation of the object

# File lib/vericred_client/models/rate_search.rb, line 2546
def to_s
  to_hash.to_s
end
valid?() click to toggle source

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/rate_search.rb, line 2318
def valid?
  return true
end