Class: EMIS::Models::CombatPay

Inherits:
Object
  • Object
show all
Defined in:
lib/emis/models/combat_pay.rb

Overview

EMIS Combat Pay data for a veteran

Instance Attribute Summary collapse

Instance Attribute Details

#begin_dateDate

Returns date the specified pay began. Day is not available from the pay files and is defaulted to “01”.

Returns:

  • (Date)

    date the specified pay began. Day is not available from the pay files and is defaulted to “01”



23
24
25
26
27
28
29
30
31
# File 'lib/emis/models/combat_pay.rb', line 23

class CombatPay
  include Virtus.model

  attribute :segment_identifier, String
  attribute :begin_date, Date
  attribute :end_date, Date
  attribute :type_code, String
  attribute :combat_zone_country_code, String
end

#combat_zone_country_codeString

Returns 2 letter ISO code that represents the country designated a Combat Zone. Used only when CZTE is indicated by type_code.

Returns:

  • (String)

    2 letter ISO code that represents the country designated a Combat Zone. Used only when CZTE is indicated by type_code



23
24
25
26
27
28
29
30
31
# File 'lib/emis/models/combat_pay.rb', line 23

class CombatPay
  include Virtus.model

  attribute :segment_identifier, String
  attribute :begin_date, Date
  attribute :end_date, Date
  attribute :type_code, String
  attribute :combat_zone_country_code, String
end

#end_dateDate

Returns date the specified pay terminated. Day is not available from the pay files and is defaulted to the end of the month.

Returns:

  • (Date)

    date the specified pay terminated. Day is not available from the pay files and is defaulted to the end of the month



23
24
25
26
27
28
29
30
31
# File 'lib/emis/models/combat_pay.rb', line 23

class CombatPay
  include Virtus.model

  attribute :segment_identifier, String
  attribute :begin_date, Date
  attribute :end_date, Date
  attribute :type_code, String
  attribute :combat_zone_country_code, String
end

#segment_identifierString

Returns identifier that is used to ensure a unique key on each Military Pay record.

Returns:

  • (String)

    identifier that is used to ensure a unique key on each Military Pay record



23
24
25
26
27
28
29
30
31
# File 'lib/emis/models/combat_pay.rb', line 23

class CombatPay
  include Virtus.model

  attribute :segment_identifier, String
  attribute :begin_date, Date
  attribute :end_date, Date
  attribute :type_code, String
  attribute :combat_zone_country_code, String
end

#type_codeString

Returns code that indicates the type of pay being reported.

01 => Combat Zone Tax Exclusion (CZTE)
02 => Hostile Fire/Imminent Danger
03 => Hazardous Duty incentive.

Returns:

  • (String)

    code that indicates the type of pay being reported.

    01 => Combat Zone Tax Exclusion (CZTE)
    02 => Hostile Fire/Imminent Danger
    03 => Hazardous Duty incentive
    


23
24
25
26
27
28
29
30
31
# File 'lib/emis/models/combat_pay.rb', line 23

class CombatPay
  include Virtus.model

  attribute :segment_identifier, String
  attribute :begin_date, Date
  attribute :end_date, Date
  attribute :type_code, String
  attribute :combat_zone_country_code, String
end