Class: OrcaApi::PatientService::HealthPublicInsuranceCommon::Result

Inherits:
Result
  • Object
show all
Defined in:
lib/orca_api/patient_service/health_public_insurance_common.rb

Overview

患者保険・公費情報の取得・更新の結果を表現するクラス

Direct Known Subclasses

UnselectedError

Direct Known Subclasses

UnselectedError

Constant Summary

KEYS =
Set.new(
  %w(
    Patient_Information
    HealthInsurance_Information
    PublicInsurance_Information
    HealthInsurance_Combination_Information
  )
)

Constants inherited from Result

Result::LOCKED_API_RESULT

Instance Attribute Summary

Attributes inherited from Result

#raw

Instance Method Summary collapse

Methods inherited from Result

#[], #body, def_info, #initialize, #locked?, #message, #method_missing, #ok?, parse, #respond_to_missing?, trim_response, #warning?

Constructor Details

This class inherits a constructor from OrcaApi::Result

Constructor Details

This class inherits a constructor from OrcaApi::Result

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class OrcaApi::Result

Instance Method Details

#health_public_insuranceObject



27
28
29
30
31
# File 'lib/orca_api/patient_service/health_public_insurance_common.rb', line 27

def health_public_insurance
  body.select { |k, _|
    KEYS.include?(k)
  } || {}
end