Class: Torckapi::Response::Error
- Defined in:
- lib/torckapi/response/error.rb
Overview
Error response
Instance Attribute Summary collapse
-
#info_hash ⇒ String
readonly
40-char hexadecimal string.
-
#info_hashes ⇒ Array<String>
readonly
An array of 40-char hexadecimal strings.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Class Method Summary collapse
-
.from_udp(info_hashes, data) ⇒ Torckapi::Response::Error
Construct response object from udp response data.
Instance Attribute Details
#info_hash ⇒ String (readonly)
Returns 40-char hexadecimal string.
13 14 15 |
# File 'lib/torckapi/response/error.rb', line 13 def info_hash @info_hash end |
#info_hashes ⇒ Array<String> (readonly)
Returns an array of 40-char hexadecimal strings.
13 |
# File 'lib/torckapi/response/error.rb', line 13 attr_reader :info_hash, :info_hashes, :message |
#message ⇒ Object (readonly)
Returns the value of attribute message.
13 |
# File 'lib/torckapi/response/error.rb', line 13 attr_reader :info_hash, :info_hashes, :message |
Class Method Details
.from_udp(info_hashes, data) ⇒ Torckapi::Response::Error
Construct response object from udp response data
19 20 21 |
# File 'lib/torckapi/response/error.rb', line 19 def self.from_udp info_hashes, data new(info_hashes, data || "") end |