Class: DebtManagementCenter::FinancialStatusReportResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/debt_management_center/responses/financial_status_report_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response_body) ⇒ FinancialStatusReportResponse

Returns a new instance of FinancialStatusReportResponse.



9
10
11
12
13
# File 'lib/debt_management_center/responses/financial_status_report_response.rb', line 9

def initialize(response_body)
  @response_body = response_body
  @status = @response_body['status']
  @filenet_id = @response_body['identifier']
end

Instance Attribute Details

#filenet_idObject (readonly)

Returns the value of attribute filenet_id.



7
8
9
# File 'lib/debt_management_center/responses/financial_status_report_response.rb', line 7

def filenet_id
  @filenet_id
end

#statusObject (readonly)

Returns the value of attribute status.



7
8
9
# File 'lib/debt_management_center/responses/financial_status_report_response.rb', line 7

def status
  @status
end

Instance Method Details

#to_hObject



15
16
17
# File 'lib/debt_management_center/responses/financial_status_report_response.rb', line 15

def to_h
  { response_body: @response_body }
end