Class: EMIS::Models::UnitInformation

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

Overview

EMIS unit information data

Instance Attribute Summary collapse

Instance Attribute Details

#assigned_dateDate

Returns date when the batch file that contained the unit identification code update was created.

Returns:

  • (Date)

    date when the batch file that contained the unit identification code update was created.



21
22
23
24
25
26
27
28
# File 'lib/emis/models/unit_information.rb', line 21

class UnitInformation
  include Virtus.model

  attribute :segment_identifier, String
  attribute :identification_code, String
  attribute :uic_type_code, String
  attribute :assigned_date, Date
end

#identification_codeString

Returns Unit Identification Code. The data is received monthly from data feeds for position reporting and updating DEERS.

Returns:

  • (String)

    Unit Identification Code. The data is received monthly from data feeds for position reporting and updating DEERS.



21
22
23
24
25
26
27
28
# File 'lib/emis/models/unit_information.rb', line 21

class UnitInformation
  include Virtus.model

  attribute :segment_identifier, String
  attribute :identification_code, String
  attribute :uic_type_code, String
  attribute :assigned_date, Date
end

#segment_identifierString

Returns identifier that is used to ensure a unique key on each unit identification code record.

Returns:

  • (String)

    identifier that is used to ensure a unique key on each unit identification code record.



21
22
23
24
25
26
27
28
# File 'lib/emis/models/unit_information.rb', line 21

class UnitInformation
  include Virtus.model

  attribute :segment_identifier, String
  attribute :identification_code, String
  attribute :uic_type_code, String
  attribute :assigned_date, Date
end

#uic_type_codeString

Returns code that represents a specific kind of unit identification code.

S => Assigned
T => Attached.

Returns:

  • (String)

    code that represents a specific kind of unit identification code.

    S => Assigned
    T => Attached
    


21
22
23
24
25
26
27
28
# File 'lib/emis/models/unit_information.rb', line 21

class UnitInformation
  include Virtus.model

  attribute :segment_identifier, String
  attribute :identification_code, String
  attribute :uic_type_code, String
  attribute :assigned_date, Date
end