Class: EVSS::Letters::MilitaryService

Inherits:
Common::Base show all
Defined in:
lib/evss/letters/military_service.rb

Overview

Model for a user’s military service

Instance Attribute Summary collapse

Attributes inherited from Common::Base

#errors_hash, #metadata

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

#branchString

Returns The relevant branch of the military.

Returns:

  • (String)

    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_serviceString

(i.e. “HONORABLE”, “OTHER_THAN_HONORABLE”, “GENERAL”)

Returns:

  • (String)

    The character of the veteran’s 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

#entered_dateDateTime

Returns The date the veteran entered service.

Returns:

  • (DateTime)

    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_dateDateTime

Returns The date the veteran was released from service.

Returns:

  • (DateTime)

    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