class Torckapi::Response::Error

Error response

Attributes

info_hash[R]

@!attribute [r] info_hash

@return [String] 40-char hexadecimal string

@!attribute [r] info_hashes

@return [Array<String>] an array of 40-char hexadecimal strings

@!attribute [r] message

@return [String] error description
info_hashes[R]

@!attribute [r] info_hash

@return [String] 40-char hexadecimal string

@!attribute [r] info_hashes

@return [Array<String>] an array of 40-char hexadecimal strings

@!attribute [r] message

@return [String] error description
message[R]

@!attribute [r] info_hash

@return [String] 40-char hexadecimal string

@!attribute [r] info_hashes

@return [Array<String>] an array of 40-char hexadecimal strings

@!attribute [r] message

@return [String] error description

Public Class Methods

from_udp(info_hashes, data) click to toggle source

Construct response object from udp response data @param info_hashes [String, Array<String>] a 40-char hexadecimal string or an array of those @param data [String] UDP response data (omit action and transaction_id) @return [Torckapi::Response::Error] response

# File lib/torckapi/response/error.rb, line 19
def self.from_udp info_hashes, data
  new(info_hashes, data || "")
end
new(info_hashes, message) click to toggle source
# File lib/torckapi/response/error.rb, line 29
def initialize info_hashes, message
  @info_hashes = [*info_hashes]
  @message = message
end