Class: EMIS::Models::DeploymentLocationV2

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

Overview

EMIS veteran deployment locations data

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#begin_dateDate

Returns start date for the deployment to this location.

Returns:

  • (Date)

    start date for the deployment to this location.



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/emis/models/deployment_location_v2.rb', line 25

class DeploymentLocationV2
  include Virtus.model

  attribute :segment_identifier, String
  attribute :country, String
  attribute :iso_alpha3_country, String
  attribute :begin_date, Date
  attribute :end_date, Date
  attribute :termination_reason_code, String
  attribute :transaction_date, Date

  # Date range of deployment
  # @return [Range] Date range of deployment
  def date_range
    begin_date..end_date
  end
end

#countryString

Returns alpha-2 code that represents the country of the person’s location. The valid values also include dependencies and areas of special sovereignty.

Returns:

  • (String)

    alpha-2 code that represents the country of the person’s location. The valid values also include dependencies and areas of special sovereignty.



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/emis/models/deployment_location_v2.rb', line 25

class DeploymentLocationV2
  include Virtus.model

  attribute :segment_identifier, String
  attribute :country, String
  attribute :iso_alpha3_country, String
  attribute :begin_date, Date
  attribute :end_date, Date
  attribute :termination_reason_code, String
  attribute :transaction_date, Date

  # Date range of deployment
  # @return [Range] Date range of deployment
  def date_range
    begin_date..end_date
  end
end

#end_dateDate

Returns end date for the deployment to this location.

Returns:

  • (Date)

    end date for the deployment to this location.



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/emis/models/deployment_location_v2.rb', line 25

class DeploymentLocationV2
  include Virtus.model

  attribute :segment_identifier, String
  attribute :country, String
  attribute :iso_alpha3_country, String
  attribute :begin_date, Date
  attribute :end_date, Date
  attribute :termination_reason_code, String
  attribute :transaction_date, Date

  # Date range of deployment
  # @return [Range] Date range of deployment
  def date_range
    begin_date..end_date
  end
end

#iso_alpha3_countryString

Returns ISO alpha 3 code representing the country of deployment.

Returns:

  • (String)

    ISO alpha 3 code representing the country of deployment.



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/emis/models/deployment_location_v2.rb', line 25

class DeploymentLocationV2
  include Virtus.model

  attribute :segment_identifier, String
  attribute :country, String
  attribute :iso_alpha3_country, String
  attribute :begin_date, Date
  attribute :end_date, Date
  attribute :termination_reason_code, String
  attribute :transaction_date, Date

  # Date range of deployment
  # @return [Range] Date range of deployment
  def date_range
    begin_date..end_date
  end
end

#segment_identifierString

Returns identifier that is used to ensure a unique key on each deployment location record.

Returns:

  • (String)

    identifier that is used to ensure a unique key on each deployment location record.



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/emis/models/deployment_location_v2.rb', line 25

class DeploymentLocationV2
  include Virtus.model

  attribute :segment_identifier, String
  attribute :country, String
  attribute :iso_alpha3_country, String
  attribute :begin_date, Date
  attribute :end_date, Date
  attribute :termination_reason_code, String
  attribute :transaction_date, Date

  # Date range of deployment
  # @return [Range] Date range of deployment
  def date_range
    begin_date..end_date
  end
end

#termination_reason_codeString

Returns code that represents the reason why the deployment at that location terminated.

C => Completion of Deployment Period at a location
W => Not Applicable.

Returns:

  • (String)

    code that represents the reason why the deployment at that location terminated.

    C => Completion of Deployment Period at a location
    W => Not Applicable
    


25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/emis/models/deployment_location_v2.rb', line 25

class DeploymentLocationV2
  include Virtus.model

  attribute :segment_identifier, String
  attribute :country, String
  attribute :iso_alpha3_country, String
  attribute :begin_date, Date
  attribute :end_date, Date
  attribute :termination_reason_code, String
  attribute :transaction_date, Date

  # Date range of deployment
  # @return [Range] Date range of deployment
  def date_range
    begin_date..end_date
  end
end

#transaction_dateDate

Returns date for the transaction updating deployment location data.

Returns:

  • (Date)

    date for the transaction updating deployment location data.



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/emis/models/deployment_location_v2.rb', line 25

class DeploymentLocationV2
  include Virtus.model

  attribute :segment_identifier, String
  attribute :country, String
  attribute :iso_alpha3_country, String
  attribute :begin_date, Date
  attribute :end_date, Date
  attribute :termination_reason_code, String
  attribute :transaction_date, Date

  # Date range of deployment
  # @return [Range] Date range of deployment
  def date_range
    begin_date..end_date
  end
end

Instance Method Details

#date_rangeRange

Date range of deployment

Returns:

  • (Range)

    Date range of deployment



38
39
40
# File 'lib/emis/models/deployment_location_v2.rb', line 38

def date_range
  begin_date..end_date
end