Class: TDL::Request
- Inherits:
-
Struct
- Object
- Struct
- TDL::Request
- Defined in:
- lib/tdl/queue/abstractions/request.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#method ⇒ Object
Returns the value of attribute method.
-
#original_message ⇒ Object
Returns the value of attribute original_message.
-
#params ⇒ Object
Returns the value of attribute params.
Class Method Summary collapse
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
2 3 4 |
# File 'lib/tdl/queue/abstractions/request.rb', line 2 def id @id end |
#method ⇒ Object
Returns the value of attribute method
2 3 4 |
# File 'lib/tdl/queue/abstractions/request.rb', line 2 def method @method end |
#original_message ⇒ Object
Returns the value of attribute original_message
2 3 4 |
# File 'lib/tdl/queue/abstractions/request.rb', line 2 def @original_message end |
#params ⇒ Object
Returns the value of attribute params
2 3 4 |
# File 'lib/tdl/queue/abstractions/request.rb', line 2 def params @params end |
Class Method Details
.deserialize(original_message, request_data) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/tdl/queue/abstractions/request.rb', line 3 def self.deserialize(, request_data) new( , request_data.fetch('id'), request_data.fetch('method'), request_data.fetch('params') ) end |