Class: OrcaApi::BinaryResult

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

Overview

画像データ取得APIのようなバイナリ形式の日レセAPIの呼び出し結果を扱うクラス

See Also:

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#rawObject (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_resultObject



18
19
20
# File 'lib/orca_api/binary_result.rb', line 18

def api_result
  "0"
end

#api_result_messageObject



22
23
24
# File 'lib/orca_api/binary_result.rb', line 22

def api_result_message
  "正常終了"
end

#ok?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/orca_api/binary_result.rb', line 14

def ok?
  true
end