Class: TPPlus::Nodes::UserAlarmNode
- Inherits:
-
Object
- Object
- TPPlus::Nodes::UserAlarmNode
- Defined in:
- lib/tp_plus/nodes/user_alarm_node.rb
Instance Attribute Summary collapse
-
#comment ⇒ Object
Returns the value of attribute comment.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
- #eval(context, options = {}) ⇒ Object
-
#initialize(id) ⇒ UserAlarmNode
constructor
A new instance of UserAlarmNode.
Constructor Details
#initialize(id) ⇒ UserAlarmNode
Returns a new instance of UserAlarmNode.
6 7 8 9 |
# File 'lib/tp_plus/nodes/user_alarm_node.rb', line 6 def initialize(id) @id = id @comment = "" end |
Instance Attribute Details
#comment ⇒ Object
Returns the value of attribute comment.
4 5 6 |
# File 'lib/tp_plus/nodes/user_alarm_node.rb', line 4 def comment @comment end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/tp_plus/nodes/user_alarm_node.rb', line 5 def id @id end |
Instance Method Details
#eval(context, options = {}) ⇒ Object
11 12 13 |
# File 'lib/tp_plus/nodes/user_alarm_node.rb', line 11 def eval(context, ={}) "UALM[#{@id}]" end |