Class: EVSS::Letters::MilitaryService
- Inherits:
-
Common::Base
- Object
- Common::Base
- EVSS::Letters::MilitaryService
- Defined in:
- lib/evss/letters/military_service.rb
Overview
Model for a user’s military service
Instance Attribute Summary collapse
-
#branch ⇒ String
The relevant branch of the military.
-
#character_of_service ⇒ String
(i.e. “HONORABLE”, “OTHER_THAN_HONORABLE”, “GENERAL”).
-
#entered_date ⇒ DateTime
The date the veteran entered service.
-
#released_date ⇒ DateTime
The date the veteran was released from service.
Attributes inherited from Common::Base
Method Summary
Methods inherited from Common::Base
#changed, #changed?, #changes, default_sort, filterable_attributes, #initialize, max_per_page, per_page, sortable_attributes
Constructor Details
This class inherits a constructor from Common::Base
Instance Attribute Details
#branch ⇒ String
Returns The relevant branch of the military.
20 21 22 23 24 25 |
# File 'lib/evss/letters/military_service.rb', line 20 class MilitaryService < Common::Base attribute :branch, String attribute :character_of_service, String attribute :entered_date, DateTime attribute :released_date, DateTime end |
#character_of_service ⇒ String
(i.e. “HONORABLE”, “OTHER_THAN_HONORABLE”, “GENERAL”)
20 21 22 23 24 25 |
# File 'lib/evss/letters/military_service.rb', line 20 class MilitaryService < Common::Base attribute :branch, String attribute :character_of_service, String attribute :entered_date, DateTime attribute :released_date, DateTime end |
#entered_date ⇒ DateTime
Returns The date the veteran entered service.
20 21 22 23 24 25 |
# File 'lib/evss/letters/military_service.rb', line 20 class MilitaryService < Common::Base attribute :branch, String attribute :character_of_service, String attribute :entered_date, DateTime attribute :released_date, DateTime end |
#released_date ⇒ DateTime
Returns The date the veteran was released from service.
20 21 22 23 24 25 |
# File 'lib/evss/letters/military_service.rb', line 20 class MilitaryService < Common::Base attribute :branch, String attribute :character_of_service, String attribute :entered_date, DateTime attribute :released_date, DateTime end |