Class: EMIS::Models::DeploymentLocationV2
- Inherits:
-
Object
- Object
- EMIS::Models::DeploymentLocationV2
- Defined in:
- lib/emis/models/deployment_location_v2.rb
Overview
EMIS veteran deployment locations data
Instance Attribute Summary collapse
-
#begin_date ⇒ Date
Start date for the deployment to this location.
-
#country ⇒ String
Alpha-2 code that represents the country of the person’s location.
-
#end_date ⇒ Date
End date for the deployment to this location.
-
#iso_alpha3_country ⇒ String
ISO alpha 3 code representing the country of deployment.
-
#segment_identifier ⇒ String
Identifier that is used to ensure a unique key on each deployment location record.
-
#termination_reason_code ⇒ String
Code that represents the reason why the deployment at that location terminated.
-
#transaction_date ⇒ Date
Date for the transaction updating deployment location data.
Instance Method Summary collapse
-
#date_range ⇒ Range
Date range of deployment.
Instance Attribute Details
#begin_date ⇒ Date
Returns 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 |
#country ⇒ String
Returns 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_date ⇒ Date
Returns 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_country ⇒ String
Returns 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_identifier ⇒ String
Returns 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_code ⇒ String
Returns 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_date ⇒ Date
Returns 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_range ⇒ 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 |