Class: KJess::Request::Set
- Inherits:
-
KJess::Request
- Object
- Protocol
- KJess::Request
- KJess::Request::Set
- Defined in:
- lib/kjess/request/set.rb
Constant Summary
Constants inherited from KJess::Request
Constants inherited from Protocol
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Attributes inherited from Protocol
Instance Method Summary collapse
Methods inherited from KJess::Request
Methods inherited from Protocol
arity, #initialize, keyword, #keyword, register
Constructor Details
This class inherits a constructor from KJess::Protocol
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
7 8 9 |
# File 'lib/kjess/request/set.rb', line 7 def data @data end |
Instance Method Details
#parse_options_to_args(opts) ⇒ Object
9 10 11 12 |
# File 'lib/kjess/request/set.rb', line 9 def ( opts ) @data = opts[:data].to_s [ opts[:queue_name], 0, opts[:expiration] || 0 , data.bytesize ] end |
#to_protocol ⇒ Object
14 15 16 17 |
# File 'lib/kjess/request/set.rb', line 14 def to_protocol s = super s += "#{data}#{CRLF}" end |