Class: EVSS::DisabilityCompensationForm::RatingInfoResponse

Inherits:
Response show all
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

Attributes inherited from Common::Base

#errors_hash, #metadata

Instance Method Summary collapse

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_nameString

Returns The disability decision type (ex. Service Connected).

Returns:

  • (String)

    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_degreeInteger

Returns Service connected combined degree rating (ex. 90).

Returns:

  • (Integer)

    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_disabilityInteger

Returns User percent of disability rating (ex. 90).

Returns:

  • (Integer)

    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