Class: NServer::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/nserver.rb

Constant Summary collapse

PRIORITIES =
[:low, :normal, :critical]

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#priorityObject

Returns the value of attribute priority.



258
259
260
# File 'lib/nserver.rb', line 258

def priority
  @priority
end

#textObject (readonly)

Returns the value of attribute text.



256
257
258
# File 'lib/nserver.rb', line 256

def text
  @text
end

#titleObject (readonly)

Returns the value of attribute title.



257
258
259
# File 'lib/nserver.rb', line 257

def title
  @title
end