Class: WSocketIO::HistoryResult

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(channel: '', messages: [], has_more: false) ⇒ HistoryResult

Returns a new instance of HistoryResult.



37
38
39
# File 'lib/wsocket_io.rb', line 37

def initialize(channel: '', messages: [], has_more: false)
  super
end

Instance Attribute Details

#channelObject

Returns the value of attribute channel

Returns:

  • (Object)

    the current value of channel



36
37
38
# File 'lib/wsocket_io.rb', line 36

def channel
  @channel
end

#has_moreObject

Returns the value of attribute has_more

Returns:

  • (Object)

    the current value of has_more



36
37
38
# File 'lib/wsocket_io.rb', line 36

def has_more
  @has_more
end

#messagesObject

Returns the value of attribute messages

Returns:

  • (Object)

    the current value of messages



36
37
38
# File 'lib/wsocket_io.rb', line 36

def messages
  @messages
end