Class: EVSS::DisabilityCompensationForm::RatingInfoResponse
- Inherits:
-
Response
- Object
- Common::Base
- Response
- EVSS::DisabilityCompensationForm::RatingInfoResponse
- Defined in:
- lib/evss/disability_compensation_form/rating_info_response.rb
Overview
Model for findRatingInfoPID response. The findRatingInfoPID service returns information about all the veteran’s rated disabilities.
Constant Summary
Constants included from Common::Client::Concerns::ServiceStatus
Common::Client::Concerns::ServiceStatus::RESPONSE_STATUS
Instance Attribute Summary collapse
-
#disability_decision_type_name ⇒ String
The disability decision type (ex. Service Connected).
-
#service_connected_combined_degree ⇒ Integer
Service connected combined degree rating (ex. 90).
-
#user_percent_of_disability ⇒ Integer
User percent of disability rating (ex. 90).
Attributes inherited from Common::Base
Instance Method Summary collapse
-
#initialize(status, response = nil) ⇒ RatingInfoResponse
constructor
A new instance of RatingInfoResponse.
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) ⇒ RatingInfoResponse
Returns a new instance of RatingInfoResponse.
23 24 25 |
# File 'lib/evss/disability_compensation_form/rating_info_response.rb', line 23 def initialize(status, response = nil) super(status, response.body) if response end |
Instance Attribute Details
#disability_decision_type_name ⇒ String
Returns The disability decision type (ex. Service Connected).
18 19 20 21 22 23 24 25 26 |
# File 'lib/evss/disability_compensation_form/rating_info_response.rb', line 18 class RatingInfoResponse < EVSS::Response attribute :disability_decision_type_name, String attribute :service_connected_combined_degree, Integer attribute :user_percent_of_disability, Integer def initialize(status, response = nil) super(status, response.body) if response end end |
#service_connected_combined_degree ⇒ Integer
Returns Service connected combined degree rating (ex. 90).
18 19 20 21 22 23 24 25 26 |
# File 'lib/evss/disability_compensation_form/rating_info_response.rb', line 18 class RatingInfoResponse < EVSS::Response attribute :disability_decision_type_name, String attribute :service_connected_combined_degree, Integer attribute :user_percent_of_disability, Integer def initialize(status, response = nil) super(status, response.body) if response end end |
#user_percent_of_disability ⇒ Integer
Returns User percent of disability rating (ex. 90).
18 19 20 21 22 23 24 25 26 |
# File 'lib/evss/disability_compensation_form/rating_info_response.rb', line 18 class RatingInfoResponse < EVSS::Response attribute :disability_decision_type_name, String attribute :service_connected_combined_degree, Integer attribute :user_percent_of_disability, Integer def initialize(status, response = nil) super(status, response.body) if response end end |