Class: Message
Instance Attribute Summary collapse
-
#severity ⇒ Object
readonly
Returns the value of attribute severity.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(*args) ⇒ Message
Returns a new instance of Message.
3 4 5 6 7 |
# File 'lib/salticid/message.rb', line 3 def initialize(*args) @text = args.pop @severity = args.first @time = Time.now end |
Instance Attribute Details
#severity ⇒ Object (readonly)
Returns the value of attribute severity.
2 3 4 |
# File 'lib/salticid/message.rb', line 2 def severity @severity end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
2 3 4 |
# File 'lib/salticid/message.rb', line 2 def text @text end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
2 3 4 |
# File 'lib/salticid/message.rb', line 2 def time @time end |