Class: KStor::SessionRequest
Overview
A user request with a session ID.
Instance Attribute Summary collapse
-
#session_id ⇒ Object
readonly
Returns the value of attribute session_id.
Attributes inherited from Message
Instance Method Summary collapse
-
#initialize(session_id, type, args) ⇒ SessionRequest
constructor
A new instance of SessionRequest.
- #inspect ⇒ Object
- #to_h ⇒ Object
Methods inherited from Message
Constructor Details
#initialize(session_id, type, args) ⇒ SessionRequest
Returns a new instance of SessionRequest.
87 88 89 90 |
# File 'lib/kstor/message.rb', line 87 def initialize(session_id, type, args) @session_id = session_id super(type, args) end |
Instance Attribute Details
#session_id ⇒ Object (readonly)
Returns the value of attribute session_id.
85 86 87 |
# File 'lib/kstor/message.rb', line 85 def session_id @session_id end |
Instance Method Details
#inspect ⇒ Object
92 93 94 95 96 97 98 99 |
# File 'lib/kstor/message.rb', line 92 def inspect fmt = [ '#<KStor::SessionRequest:%<id>x', '@session_id=******', '@args=%<args>s>' ].join(' ') format(fmt, id: object_id, args: @args.inspect) end |
#to_h ⇒ Object
101 102 103 |
# File 'lib/kstor/message.rb', line 101 def to_h super.merge('session_id' => @session_id) end |