Class: WSocketIO::PresenceMember

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client_id: '', data: nil, joined_at: 0) ⇒ PresenceMember

Returns a new instance of PresenceMember.



25
26
27
# File 'lib/wsocket_io.rb', line 25

def initialize(client_id: '', data: nil, joined_at: 0)
  super
end

Instance Attribute Details

#client_idObject

Returns the value of attribute client_id

Returns:

  • the current value of client_id



24
25
26
# File 'lib/wsocket_io.rb', line 24

def client_id
  @client_id
end

#dataObject

Returns the value of attribute data

Returns:

  • the current value of data



24
25
26
# File 'lib/wsocket_io.rb', line 24

def data
  @data
end

#joined_atObject

Returns the value of attribute joined_at

Returns:

  • the current value of joined_at



24
25
26
# File 'lib/wsocket_io.rb', line 24

def joined_at
  @joined_at
end