Class: Protolink::Listen
- Inherits:
-
Object
- Object
- Protolink::Listen
- Defined in:
- lib/protolink/listen.rb
Instance Attribute Summary collapse
-
#channel_id ⇒ Object
readonly
Returns the value of attribute channel_id.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#user_id ⇒ Object
readonly
Returns the value of attribute user_id.
Instance Method Summary collapse
-
#initialize(connection, attributes = {}) ⇒ Listen
constructor
A new instance of Listen.
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_id ⇒ Object (readonly)
Returns the value of attribute channel_id.
3 4 5 |
# File 'lib/protolink/listen.rb', line 3 def channel_id @channel_id end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/protolink/listen.rb', line 3 def id @id end |
#user_id ⇒ Object (readonly)
Returns the value of attribute user_id.
3 4 5 |
# File 'lib/protolink/listen.rb', line 3 def user_id @user_id end |