Class: EVSS::DisabilityCompensationForm::RatedDisabilitiesResponse
- Inherits:
-
Response
- Object
- Common::Base
- Response
- EVSS::DisabilityCompensationForm::RatedDisabilitiesResponse
- Defined in:
- lib/evss/disability_compensation_form/rated_disabilities_response.rb
Overview
Model that contains an array of a veteran’s parsed rated disabilities
Constant Summary
Constants included from Common::Client::Concerns::ServiceStatus
Common::Client::Concerns::ServiceStatus::RESPONSE_STATUS
Instance Attribute Summary collapse
-
#rated_disabilities ⇒ Array<EVSS::DisabilityCompensationForm::RatedDisability>
The list of rated disabilities.
Attributes inherited from Common::Base
Instance Method Summary collapse
-
#initialize(status, response = nil) ⇒ RatedDisabilitiesResponse
constructor
A new instance of RatedDisabilitiesResponse.
Methods inherited from Response
#cache?, #metadata, #ok?, #response_status
Methods inherited from Common::Base
#changed, #changed?, #changes, default_sort, filterable_attributes, max_per_page, per_page, sortable_attributes
Constructor Details
#initialize(status, response = nil) ⇒ RatedDisabilitiesResponse
Returns a new instance of RatedDisabilitiesResponse.
16 17 18 |
# File 'lib/evss/disability_compensation_form/rated_disabilities_response.rb', line 16 def initialize(status, response = nil) super(status, response.body) if response end |
Instance Attribute Details
#rated_disabilities ⇒ Array<EVSS::DisabilityCompensationForm::RatedDisability>
Returns The list of rated disabilities.
13 14 15 16 17 18 19 |
# File 'lib/evss/disability_compensation_form/rated_disabilities_response.rb', line 13 class RatedDisabilitiesResponse < EVSS::Response attribute :rated_disabilities, Array[EVSS::DisabilityCompensationForm::RatedDisability] def initialize(status, response = nil) super(status, response.body) if response end end |