Class: WSocketIO::HistoryMessage
- Inherits:
-
Struct
- Object
- Struct
- WSocketIO::HistoryMessage
- Defined in:
- lib/wsocket_io.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
Returns the value of attribute channel.
-
#data ⇒ Object
Returns the value of attribute data.
-
#id ⇒ Object
Returns the value of attribute id.
-
#publisher_id ⇒ Object
Returns the value of attribute publisher_id.
-
#sequence ⇒ Object
Returns the value of attribute sequence.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(id: '', channel: '', data: nil, publisher_id: '', timestamp: 0, sequence: 0) ⇒ HistoryMessage
constructor
A new instance of HistoryMessage.
Constructor Details
#initialize(id: '', channel: '', data: nil, publisher_id: '', timestamp: 0, sequence: 0) ⇒ HistoryMessage
Returns a new instance of HistoryMessage.
31 32 33 |
# File 'lib/wsocket_io.rb', line 31 def initialize(id: '', channel: '', data: nil, publisher_id: '', timestamp: 0, sequence: 0) super end |
Instance Attribute Details
#channel ⇒ Object
Returns the value of attribute channel
30 31 32 |
# File 'lib/wsocket_io.rb', line 30 def channel @channel end |
#data ⇒ Object
Returns the value of attribute data
30 31 32 |
# File 'lib/wsocket_io.rb', line 30 def data @data end |
#id ⇒ Object
Returns the value of attribute id
30 31 32 |
# File 'lib/wsocket_io.rb', line 30 def id @id end |
#publisher_id ⇒ Object
Returns the value of attribute publisher_id
30 31 32 |
# File 'lib/wsocket_io.rb', line 30 def publisher_id @publisher_id end |
#sequence ⇒ Object
Returns the value of attribute sequence
30 31 32 |
# File 'lib/wsocket_io.rb', line 30 def sequence @sequence end |
#timestamp ⇒ Object
Returns the value of attribute timestamp
30 31 32 |
# File 'lib/wsocket_io.rb', line 30 def @timestamp end |