Class: EMIS::Responses::GetMilitaryServiceEligibilityInfoResponse
- Inherits:
-
Response
- Object
- Response
- EMIS::Responses::GetMilitaryServiceEligibilityInfoResponse
- Defined in:
- lib/emis/responses/get_military_service_eligibility_info_response.rb
Overview
EMIS military service eligibility response
Instance Method Summary collapse
-
#item_schema ⇒ Hash
Schema for translating XML data into model data.
-
#item_tag_name ⇒ String
XML Tag that contains response data.
-
#model_class ⇒ Class
Model class to put response data.
Methods inherited from Response
#build_item, #build_item_value, #cache?, #empty?, #error, #error?, #find_all_elements_by_tag_name, #initialize, #items, #locate, #locate_one, #ok?
Constructor Details
This class inherits a constructor from EMIS::Responses::Response
Instance Method Details
#item_schema ⇒ Hash
Returns Schema for translating XML data into model data.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/emis/responses/get_military_service_eligibility_info_response.rb', line 18 def item_schema { 'veteranStatus' => { rename: 'veteran_status', model_class: EMIS::Models::VeteranStatus, schema: { 'title38StatusCode' => {}, 'post911DeploymentIndicator' => {}, 'post911CombatIndicator' => {}, 'pre911DeploymentIndicator' => {} } }, 'dentalIndicator' => { model_class: EMIS::Models::DentalIndicator, schema: { 'dentalIndicatorSeperationDate' => { rename: 'separation_date' }, 'dentalIndicator' => {} } }, 'militaryServiceEpisodes' => { model_class: EMIS::Models::EligibilityMilitaryServiceEpisode, schema: { 'serviceEpisodeStartDate' => { rename: 'begin_date' }, 'serviceEpisodeEndDate' => { rename: 'end_date' }, 'branchOfServiceCode' => {}, 'dischargeCharacterOfServiceCode' => {}, 'honorableDischargeForVaPurposeCode' => {}, 'narrativeReasonForSeparationCode' => {}, 'deployments' => { model_class: EMIS::Models::EligibilityDeployment, schema: { 'deploymentSegmentIdentifier' => { rename: 'segment_identifier' }, 'deploymentStartDate' => { rename: 'begin_date' }, 'deploymentEndDate' => { rename: 'end_date' }, 'deploymentProjectCode' => { rename: 'project_code' }, 'DeploymentLocation' => { rename: 'locations', model_class: EMIS::Models::EligibilityDeploymentLocation, schema: { 'deploymentLocationSegmentIdentifier' => { rename: 'segment_identifier' }, 'deploymentCountryCode' => { rename: 'country_code' }, 'deploymentISOA3CountryCode' => { rename: 'iso_a3_country_code' } } } } }, 'combatPay' => { model_class: EMIS::Models::CombatPay, schema: { 'combatPaySegmentIdentifier' => { rename: 'segment_identifier' }, 'combatPayBeginDate' => { rename: 'begin_date' }, 'combatPayEndDate' => { rename: 'end_date' }, 'combatPayTypeCode' => { rename: 'type_code' }, 'combatZoneCountryCode' => {} } } } } } end |
#item_tag_name ⇒ String
Returns XML Tag that contains response data.
11 12 13 |
# File 'lib/emis/responses/get_military_service_eligibility_info_response.rb', line 11 def item_tag_name 'militaryServiceEligibility' end |
#model_class ⇒ Class
Returns Model class to put response data.
81 82 83 |
# File 'lib/emis/responses/get_military_service_eligibility_info_response.rb', line 81 def model_class EMIS::Models::MilitaryServiceEligibilityInfo end |