Class: Message
- Inherits:
-
OpenShift::Model
- Object
- OpenShift::Model
- Message
- Defined in:
- app/models/message.rb
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
Returns the value of attribute exit_code.
-
#field ⇒ Object
Returns the value of attribute field.
-
#severity ⇒ Object
Returns the value of attribute severity.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(severity = :info, text = nil, exit_code = nil, field = nil) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(severity = :info, text = nil, exit_code = nil, field = nil) ⇒ Message
Returns a new instance of Message.
4 5 6 7 8 9 |
# File 'app/models/message.rb', line 4 def initialize(severity=:info, text=nil, exit_code=nil, field=nil) self.severity = severity self.text = text self.exit_code = exit_code self.field = field end |
Instance Attribute Details
#exit_code ⇒ Object
Returns the value of attribute exit_code.
2 3 4 |
# File 'app/models/message.rb', line 2 def exit_code @exit_code end |
#field ⇒ Object
Returns the value of attribute field.
2 3 4 |
# File 'app/models/message.rb', line 2 def field @field end |
#severity ⇒ Object
Returns the value of attribute severity.
2 3 4 |
# File 'app/models/message.rb', line 2 def severity @severity end |
#text ⇒ Object
Returns the value of attribute text.
2 3 4 |
# File 'app/models/message.rb', line 2 def text @text end |