Class: Butler::IRC::Topic
- Inherits:
-
Struct
- Object
- Struct
- Butler::IRC::Topic
- Defined in:
- lib/butler/irc/topic.rb,
lib/butler/irc/topic.rb
Instance Attribute Summary collapse
-
#set_at ⇒ Object
Returns the value of attribute set_at.
-
#set_by ⇒ Object
Returns the value of attribute set_by.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
Instance Attribute Details
#set_at ⇒ Object
Returns the value of attribute set_at
3 4 5 |
# File 'lib/butler/irc/topic.rb', line 3 def set_at @set_at end |
#set_by ⇒ Object
Returns the value of attribute set_by
3 4 5 |
# File 'lib/butler/irc/topic.rb', line 3 def set_by @set_by end |
#text ⇒ Object
Returns the value of attribute text
3 4 5 |
# File 'lib/butler/irc/topic.rb', line 3 def text @text end |
Instance Method Details
#inspect ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/butler/irc/topic.rb', line 5 def inspect "#<%s %s --%s on %s>" % [ self.class, text, set_by, set_at.strftime("%Y-%m-%d %H:%M") ] end |