Class: NServer::Message
- Inherits:
-
Object
- Object
- NServer::Message
- Defined in:
- lib/nserver.rb
Constant Summary collapse
- PRIORITIES =
[:low, :normal, :critical]
Instance Attribute Summary collapse
-
#priority ⇒ Object
Returns the value of attribute priority.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(text = "", priority = :normal, title = nil) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(text = "", priority = :normal, title = nil) ⇒ Message
Returns a new instance of Message.
260 261 262 263 264 |
# File 'lib/nserver.rb', line 260 def initialize( text = "", priority = :normal, title = nil ) @text = text self.priority = priority @title = title end |
Instance Attribute Details
#priority ⇒ Object
Returns the value of attribute priority.
258 259 260 |
# File 'lib/nserver.rb', line 258 def priority @priority end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
256 257 258 |
# File 'lib/nserver.rb', line 256 def text @text end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
257 258 259 |
# File 'lib/nserver.rb', line 257 def title @title end |