Class: Bookwatch::UserMessage
- Inherits:
-
Struct
- Object
- Struct
- Bookwatch::UserMessage
- Defined in:
- lib/bookwatch/values/user_message.rb
Instance Attribute Summary collapse
-
#escalation_type ⇒ Object
Returns the value of attribute escalation_type.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
Instance Attribute Details
#escalation_type ⇒ Object
Returns the value of attribute escalation_type
4 5 6 |
# File 'lib/bookwatch/values/user_message.rb', line 4 def escalation_type @escalation_type end |
#message ⇒ Object
Returns the value of attribute message
4 5 6 |
# File 'lib/bookwatch/values/user_message.rb', line 4 def @message end |
Instance Method Details
#error? ⇒ Boolean
5 6 7 |
# File 'lib/bookwatch/values/user_message.rb', line 5 def error? escalation_type == EscalationType.error end |
#warn? ⇒ Boolean
9 10 11 |
# File 'lib/bookwatch/values/user_message.rb', line 9 def warn? escalation_type == EscalationType.warn end |