Class: Twterm::Event::Message::AbstractMessage
- Inherits:
-
AbstractEvent
- Object
- AbstractEvent
- Twterm::Event::Message::AbstractMessage
- Defined in:
- lib/twterm/event/message/abstract_message.rb
Instance Attribute Summary collapse
-
#time ⇒ Object
readonly
Returns the value of attribute time.
Instance Method Summary collapse
- #fields ⇒ Object
-
#initialize(message) ⇒ AbstractMessage
constructor
A new instance of AbstractMessage.
Methods included from Utils
Constructor Details
#initialize(message) ⇒ AbstractMessage
Returns a new instance of AbstractMessage.
9 10 11 12 13 |
# File 'lib/twterm/event/message/abstract_message.rb', line 9 def initialize() super(CGI.unescapeHTML()) @time = Time.now end |
Instance Attribute Details
#time ⇒ Object (readonly)
Returns the value of attribute time.
7 8 9 |
# File 'lib/twterm/event/message/abstract_message.rb', line 7 def time @time end |
Instance Method Details
#fields ⇒ Object
15 16 17 18 19 |
# File 'lib/twterm/event/message/abstract_message.rb', line 15 def fields { body: String } end |