Class: EVSS::DisabilityCompensationForm::FormSubmitResponse

Inherits:
Response show all
Defined in:
lib/evss/disability_compensation_form/form_submit_response.rb

Overview

Model for a parsed 526 submission response

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) ⇒ FormSubmitResponse

Returns a new instance of FormSubmitResponse.



26
27
28
# File 'lib/evss/disability_compensation_form/form_submit_response.rb', line 26

def initialize(status, response = nil)
  super(status, response.body) if response
end

Instance Attribute Details

#claim_idInteger

Returns The lookup id for the claim returned by EVSS.

Returns:

  • (Integer)

    The lookup id for the claim returned by EVSS



20
21
22
23
24
25
26
27
28
29
# File 'lib/evss/disability_compensation_form/form_submit_response.rb', line 20

class FormSubmitResponse < EVSS::Response
  attribute :claim_id, Integer
  attribute :inflight_document_id, Integer
  attribute :end_product_claim_code, String
  attribute :end_product_claim_name, String

  def initialize(status, response = nil)
    super(status, response.body) if response
  end
end

#end_product_claim_codeInteger

Returns The code for the form e.g. ‘020SUPP’.

Returns:

  • (Integer)

    The code for the form e.g. ‘020SUPP’



20
21
22
23
24
25
26
27
28
29
# File 'lib/evss/disability_compensation_form/form_submit_response.rb', line 20

class FormSubmitResponse < EVSS::Response
  attribute :claim_id, Integer
  attribute :inflight_document_id, Integer
  attribute :end_product_claim_code, String
  attribute :end_product_claim_name, String

  def initialize(status, response = nil)
    super(status, response.body) if response
  end
end

#end_product_claim_nameInteger

Returns The name of the form e.g. ‘eBenefits 526EZ-Supplemental (020)’.

Returns:

  • (Integer)

    The name of the form e.g. ‘eBenefits 526EZ-Supplemental (020)’



20
21
22
23
24
25
26
27
28
29
# File 'lib/evss/disability_compensation_form/form_submit_response.rb', line 20

class FormSubmitResponse < EVSS::Response
  attribute :claim_id, Integer
  attribute :inflight_document_id, Integer
  attribute :end_product_claim_code, String
  attribute :end_product_claim_name, String

  def initialize(status, response = nil)
    super(status, response.body) if response
  end
end

#inflight_document_idInteger

Returns The inflight id.

Returns:

  • (Integer)

    The inflight id



20
21
22
23
24
25
26
27
28
29
# File 'lib/evss/disability_compensation_form/form_submit_response.rb', line 20

class FormSubmitResponse < EVSS::Response
  attribute :claim_id, Integer
  attribute :inflight_document_id, Integer
  attribute :end_product_claim_code, String
  attribute :end_product_claim_name, String

  def initialize(status, response = nil)
    super(status, response.body) if response
  end
end