Class: EMIS::Responses::GetMilitaryServiceEpisodesResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/emis/responses/get_military_service_episodes_response.rb

Overview

EMIS military service episodes response

Instance Method Summary collapse

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_schemaHash

Returns Schema for translating XML data into model data.

Returns:

  • (Hash)

    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
# File 'lib/emis/responses/get_military_service_episodes_response.rb', line 18

def item_schema
  {
    'personnelCategoryTypeCode' => {},
    'serviceEpisodeStartDate' => { rename: 'begin_date' },
    'serviceEpisodeEndDate' => { rename: 'end_date' },
    'serviceEpisodeTerminationReason' => { rename: 'termination_reason' },
    'branchOfServiceCode' => {},
    'retirementTypeCode' => {},
    'personnelProjectedEndDate' => {},
    'personnelProjectedEndDateCertaintyCode' => {},
    'dischargeCharacterOfServiceCode' => {},
    'honorableDischargeForVaPurposeCode' => {},
    'personnelStatusChangeTransactionTypeCode' => {},
    'narrativeReasonForSeparationCode' => {},
    'post911GIBillLossCategoryCode' => {},
    'mgadLossCategoryCode' => {},
    'activeDutyServiceAgreementQuantity' => {},
    'initialEntryTrainingEndDate' => {},
    'uniformServiceInitialEntryDate' => {},
    'militaryAccessionSourceCode' => {},
    'personnelBeginDateSource' => {},
    'personnelTerminationDateSourceCode' => {},
    'activeFederalMilitaryServiceBaseDate' => {},
    'mgsrServiceAgreementDurationYearQuantityCode' => {},
    'dodBeneficiaryTypeCode' => {},
    'reserveUnderAge60Code' => {}
  }
end

#item_tag_nameString

Returns XML Tag that contains response data.

Returns:

  • (String)

    XML Tag that contains response data



11
12
13
# File 'lib/emis/responses/get_military_service_episodes_response.rb', line 11

def item_tag_name
  'militaryServiceEpisode'
end

#model_classClass

Returns Model class to put response data.

Returns:

  • (Class)

    Model class to put response data



49
50
51
# File 'lib/emis/responses/get_military_service_episodes_response.rb', line 49

def model_class
  EMIS::Models::MilitaryServiceEpisode
end