Class: Pepito::Source
- Inherits:
-
Object
- Object
- Pepito::Source
- Defined in:
- lib/pepito/source.rb
Overview
Source for a message, where it comes from, where it should go
Instance Attribute Summary collapse
-
#adapter ⇒ Pepito::Adapter
readonly
Adapter that received the message.
-
#private_message ⇒ Boolean
readonly
Whether the message is private or not.
-
#room ⇒ String
readonly
Room where the message originated.
-
#user ⇒ String
readonly
User that sent the message.
Instance Method Summary collapse
Constructor Details
#initialize(adapter, user, room, private_message) ⇒ void
25 26 27 28 29 30 |
# File 'lib/pepito/source.rb', line 25 def initialize(adapter, user, room, ) @adapter = adapter @user = user @room = room @private_message = end |
Instance Attribute Details
#adapter ⇒ Pepito::Adapter (readonly)
Adapter that received the message.
6 7 8 |
# File 'lib/pepito/source.rb', line 6 def adapter @adapter end |
#private_message ⇒ Boolean (readonly)
Whether the message is private or not
18 19 20 |
# File 'lib/pepito/source.rb', line 18 def @private_message end |
#room ⇒ String (readonly)
Room where the message originated
14 15 16 |
# File 'lib/pepito/source.rb', line 14 def room @room end |
#user ⇒ String (readonly)
User that sent the message.
10 11 12 |
# File 'lib/pepito/source.rb', line 10 def user @user end |