Class: OrcaApi::ReceiptDataService::ListEffectiveInformationResult

Inherits:
OrcaApi::Result
  • Object
show all
Defined in:
lib/orca_api/receipt_data_service.rb

Overview

医保分のレセ電データ作成時に必要な情報取得する処理の結果を表現するクラス

情報がない場合でも #ok? がtrueを返し、以下でいずれも空の配列を返す。

  • #effective_period_information#["Effective_Period_Information"]
  • #insurance_provider_information#["InsuranceProvider_Information"]

Constant Summary

Constants inherited from OrcaApi::Result

OrcaApi::Result::LOCKED_API_RESULT

Instance Attribute Summary

Attributes inherited from OrcaApi::Result

#raw

Instance Method Summary collapse

Methods inherited from OrcaApi::Result

#[], 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

#bodyObject

情報がない場合に、以下でいずれも空の配列を返すように上書きする。

  • #effective_period_information#["Effective_Period_Information"]
  • #insurance_provider_information#["InsuranceProvider_Information"]


34
35
36
37
38
39
# File 'lib/orca_api/receipt_data_service.rb', line 34

def body
  @body ||= {
    "Effective_Period_Information" => [],
    "InsuranceProvider_Information" => [],
  }.merge(self.class.parse(@raw))
end