Class: OrcaApi::StatisticsFormService
- Defined in:
 - lib/orca_api/statistics_form_service.rb
 
Overview
統計実施処理を扱うクラス
Defined Under Namespace
Classes: CreateResult, CreatedResult, ListResult
Instance Attribute Summary
Attributes inherited from Service
Instance Method Summary collapse
- 
  
    
      #create(list_result)  ⇒ CreateResult 
    
    
  
  
  
  
  
  
  
  
  
    
処理実施のレスポンスクラス.
 - 
  
    
      #created(create_result)  ⇒ CreatedResult 
    
    
  
  
  
  
  
  
  
  
  
    
処理確認のレスポンスクラス.
 - 
  
    
      #list(mode:)  ⇒ ListResult 
    
    
  
  
  
  
  
  
  
  
  
    
情報取得のレスポンスクラス.
 
Methods inherited from Service
Constructor Details
This class inherits a constructor from OrcaApi::Service
Constructor Details
This class inherits a constructor from OrcaApi::Service
Instance Method Details
#create(list_result) ⇒ CreateResult
Returns 処理実施のレスポンスクラス
      113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128  | 
    
      # File 'lib/orca_api/statistics_form_service.rb', line 113 def create(list_result) statistics_processing_list_information = extract_statistics_processing_list_information list_result CreateResult.new( orca_api.call( "/orca51/statisticsformv3", body: { statistics_formv3req: { "Request_Number" => "01", "Karte_Uid" => list_result.karte_uid, "Statistics_Mode" => list_result.statistics_mode, "Statistics_Processing_List_Information" => statistics_processing_list_information } } ) ) end  | 
  
#created(create_result) ⇒ CreatedResult
Returns 処理確認のレスポンスクラス
      132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148  | 
    
      # File 'lib/orca_api/statistics_form_service.rb', line 132 def created(create_result) statistics_processing_list_information = extract_statistics_processing_list_information create_result CreatedResult.new( orca_api.call( "/orca51/statisticsformv3", body: { statistics_formv3req: { "Request_Number" => "02", "Karte_Uid" => create_result.karte_uid, "Orca_Uid" => create_result.orca_uid, "Statistics_Mode" => create_result.statistics_mode, "Statistics_Processing_List_Information" => statistics_processing_list_information } } ) ) end  | 
  
#list(mode:) ⇒ ListResult
Returns 情報取得のレスポンスクラス
      94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109  | 
    
      # File 'lib/orca_api/statistics_form_service.rb', line 94 def list(mode:) raise ArgumentError unless MODES.key? mode ListResult.new( orca_api.call( "/orca51/statisticsformv3", body: { statistics_formv3req: { "Request_Number" => "00", "Karte_Uid" => orca_api.karte_uid, "Statistics_Mode" => MODES[mode] } } ) ) end  |