Class: Ritsudo::Message
- Inherits:
-
Object
- Object
- Ritsudo::Message
- Defined in:
- lib/ritsudo/message.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(message) ⇒ Message
constructor
A new instance of Message.
- #method ⇒ Object
- #param(name) ⇒ Object
- #params ⇒ Object
- #timestamp ⇒ Object
- #url ⇒ Object
Constructor Details
#initialize(message) ⇒ Message
Returns a new instance of Message.
14 15 16 |
# File 'lib/ritsudo/message.rb', line 14 def initialize() @message = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/ritsudo/message.rb', line 3 def @message end |
Class Method Details
Instance Method Details
#method ⇒ Object
18 19 20 |
# File 'lib/ritsudo/message.rb', line 18 def method ["method"] end |
#param(name) ⇒ Object
34 35 36 |
# File 'lib/ritsudo/message.rb', line 34 def param(name) params&.[](name) end |
#params ⇒ Object
30 31 32 |
# File 'lib/ritsudo/message.rb', line 30 def params ["params"] end |
#timestamp ⇒ Object
22 23 24 |
# File 'lib/ritsudo/message.rb', line 22 def param('timestamp') end |
#url ⇒ Object
26 27 28 |
# File 'lib/ritsudo/message.rb', line 26 def url param("request")&.[]("url") || 'none' end |