Class: Hipbot::Presence
- Inherits:
-
Struct
- Object
- Struct
- Hipbot::Presence
- Defined in:
- lib/hipbot/presence.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#room ⇒ Object
Returns the value of attribute room.
-
#sender ⇒ Object
Returns the value of attribute sender.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
2 3 4 |
# File 'lib/hipbot/presence.rb', line 2 def body @body end |
#room ⇒ Object
Returns the value of attribute room
2 3 4 |
# File 'lib/hipbot/presence.rb', line 2 def room @room end |
#sender ⇒ Object
Returns the value of attribute sender
2 3 4 |
# File 'lib/hipbot/presence.rb', line 2 def sender @sender end |
Instance Method Details
#for?(_) ⇒ Boolean
3 4 5 |
# File 'lib/hipbot/presence.rb', line 3 def for? _ true end |
#private? ⇒ Boolean
7 8 9 |
# File 'lib/hipbot/presence.rb', line 7 def private? room.nil? end |