Class: Turbo::Message
- Inherits:
-
Object
- Object
- Turbo::Message
- Defined in:
- lib/turbo/message.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#queue ⇒ Object
Returns the value of attribute queue.
Instance Method Summary collapse
- #clear ⇒ Object
-
#initialize(options) ⇒ Message
constructor
A new instance of Message.
- #to_s ⇒ Object
Constructor Details
#initialize(options) ⇒ Message
Returns a new instance of Message.
6 7 8 |
# File 'lib/turbo/message.rb', line 6 def initialize() self.content = [:with] end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
4 5 6 |
# File 'lib/turbo/message.rb', line 4 def content @content end |
#queue ⇒ Object
Returns the value of attribute queue.
4 5 6 |
# File 'lib/turbo/message.rb', line 4 def queue @queue end |
Instance Method Details
#clear ⇒ Object
10 11 12 |
# File 'lib/turbo/message.rb', line 10 def clear self.content.delete end |
#to_s ⇒ Object
14 15 16 |
# File 'lib/turbo/message.rb', line 14 def to_s self.content.to_s end |