Class: OrcaApi::InsuranceService

Inherits:
Service
  • Object
show all
Defined in:
lib/orca_api/insurance_service.rb

Overview

保険・公費の種類を扱うサービスを表現したクラス

Instance Attribute Summary

Attributes inherited from Service

#orca_api

Instance Method Summary collapse

Methods inherited from Service

#initialize, reuse_session

Constructor Details

This class inherits a constructor from OrcaApi::Service

Constructor Details

This class inherits a constructor from OrcaApi::Service

Instance Method Details

#list(base_date = "") ⇒ Object

保険の種類と補助区分、公費の種類の一覧の取得



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/orca_api/insurance_service.rb', line 7

def list(base_date = "")
  api_path = "/api01rv2/insuranceinf1v2"
  req_name = "insuranceinfreq"

  body = {
    req_name => {
      "Request_Number" => "01",
      "Base_Date" => base_date,
    }
  }
  Result.new(orca_api.call(api_path, body: body))
end