Class: OrcaApi::LockService::ListResult
- Defined in:
- lib/orca_api/lock_service.rb
Overview
排他制御情報の一覧の取得結果を表現したクラス
排他中の排他制御情報がない場合でもok?がtrueを返し、 #lock_information
や #["Lock_Information"]
で空の配列を返す。
Constant Summary
Constants inherited from Result
Instance Attribute Summary
Attributes inherited from Result
Instance Method Summary collapse
Methods inherited from Result
#[], def_info, #initialize, #locked?, #message, #method_missing, 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
#body ⇒ Object
12 13 14 |
# File 'lib/orca_api/lock_service.rb', line 12 def body @body ||= { "Lock_Information" => [] }.merge(self.class.parse(@raw)) end |
#ok? ⇒ Boolean
16 17 18 |
# File 'lib/orca_api/lock_service.rb', line 16 def ok? api_result == "E10" || super end |