Class: WSocketIO::HistoryMessage

Inherits:
Struct
  • Object
show all
Defined in:
lib/wsocket_io.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#channelObject

Returns the value of attribute channel

Returns:

  • (Object)

    the current value of channel



30
31
32
# File 'lib/wsocket_io.rb', line 30

def channel
  @channel
end

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



30
31
32
# File 'lib/wsocket_io.rb', line 30

def data
  @data
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



30
31
32
# File 'lib/wsocket_io.rb', line 30

def id
  @id
end

#publisher_idObject

Returns the value of attribute publisher_id

Returns:

  • (Object)

    the current value of publisher_id



30
31
32
# File 'lib/wsocket_io.rb', line 30

def publisher_id
  @publisher_id
end

#sequenceObject

Returns the value of attribute sequence

Returns:

  • (Object)

    the current value of sequence



30
31
32
# File 'lib/wsocket_io.rb', line 30

def sequence
  @sequence
end

#timestampObject

Returns the value of attribute timestamp

Returns:

  • (Object)

    the current value of timestamp



30
31
32
# File 'lib/wsocket_io.rb', line 30

def timestamp
  @timestamp
end