Class: OrcaApi::BinaryResult
- Inherits:
-
Object
- Object
- OrcaApi::BinaryResult
- Defined in:
- lib/orca_api/binary_result.rb
Overview
画像データ取得APIのようなバイナリ形式の日レセAPIの呼び出し結果を扱うクラス
Instance Attribute Summary collapse
-
#raw ⇒ Object
(also: #body)
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
- #api_result ⇒ Object
- #api_result_message ⇒ Object
-
#initialize(raw) ⇒ BinaryResult
constructor
A new instance of BinaryResult.
- #ok? ⇒ Boolean
Constructor Details
#initialize(raw) ⇒ BinaryResult
Returns a new instance of BinaryResult
8 9 10 |
# File 'lib/orca_api/binary_result.rb', line 8 def initialize(raw) @raw = raw end |
Constructor Details
#initialize(raw) ⇒ BinaryResult
Returns a new instance of BinaryResult
8 9 10 |
# File 'lib/orca_api/binary_result.rb', line 8 def initialize(raw) @raw = raw end |
Instance Attribute Details
#raw ⇒ Object (readonly) Also known as: body
Returns the value of attribute raw.
6 7 8 |
# File 'lib/orca_api/binary_result.rb', line 6 def raw @raw end |
Instance Method Details
#api_result ⇒ Object
18 19 20 |
# File 'lib/orca_api/binary_result.rb', line 18 def api_result "0" end |
#api_result_message ⇒ Object
22 23 24 |
# File 'lib/orca_api/binary_result.rb', line 22 def "正常終了" end |
#ok? ⇒ Boolean
14 15 16 |
# File 'lib/orca_api/binary_result.rb', line 14 def ok? true end |