Class: Protolink::Listen

Inherits:
Object
  • Object
show all
Defined in:
lib/protolink/listen.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connection, attributes = {}) ⇒ Listen

Returns a new instance of Listen.



5
6
7
8
9
10
11
# File 'lib/protolink/listen.rb', line 5

def initialize(connection, attributes = {})
  @connection = connection
  @id         = attributes['id']
  @user_id    = attributes['user_id']
  @channel_id = attributes['channel_id']
  @loaded     = false
end

Instance Attribute Details

#channel_idObject (readonly)

Returns the value of attribute channel_id.



3
4
5
# File 'lib/protolink/listen.rb', line 3

def channel_id
  @channel_id
end

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/protolink/listen.rb', line 3

def id
  @id
end

#user_idObject (readonly)

Returns the value of attribute user_id.



3
4
5
# File 'lib/protolink/listen.rb', line 3

def user_id
  @user_id
end