class QRPC::Protocol::Abstract::Request
Abstract
request implementation.
@since 0.9.0 @abstract
Public Class Methods
new(init = { })
click to toggle source
Constructor.
@param [Hash] init initial options @abstract
Calls superclass method
QRPC::Protocol::Abstract::Object::new
# File lib/qrpc/protocol/abstract/request.rb, line 44 def initialize(init = { }) super(init) if self.instance_of? Request not_implemented end end
parse(raw)
click to toggle source
Parses the data for new object.
@param [String] raw raw data @return [Request] new request according to data @abstract
# File lib/qrpc/protocol/abstract/request.rb, line 59 def self.parse(raw) not_implemented end
Public Instance Methods
client()
click to toggle source
id()
click to toggle source
Returns ID of the request.
@return [Object] request ID @abstract
# File lib/qrpc/protocol/abstract/request.rb, line 70 def id not_implemented end
method()
click to toggle source
Returns method identifier of the request.
@return Symbol @abstract
# File lib/qrpc/protocol/abstract/request.rb, line 81 def method not_implemented end
notification?()
click to toggle source
Indicates, job is notification. @return Boolean
# File lib/qrpc/protocol/abstract/request.rb, line 119 def notification? not_implemented end
params()
click to toggle source
Returns method params of the request.
@return Array @abstract
# File lib/qrpc/protocol/abstract/request.rb, line 92 def params not_implemented end
priority()
click to toggle source
Returns the QRPC
request priority. @return Integer
# File lib/qrpc/protocol/abstract/request.rb, line 101 def priority not_implemented end