Class: SBSM::Warning
- Inherits:
-
Object
- Object
- SBSM::Warning
- Defined in:
- lib/sbsm/state.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(message, key, value) ⇒ Warning
constructor
A new instance of Warning.
Constructor Details
#initialize(message, key, value) ⇒ Warning
Returns a new instance of Warning.
40 41 42 43 44 |
# File 'lib/sbsm/state.rb', line 40 def initialize(, key, value) @message = @key = key @value = value end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
39 40 41 |
# File 'lib/sbsm/state.rb', line 39 def key @key end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
39 40 41 |
# File 'lib/sbsm/state.rb', line 39 def @message end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
39 40 41 |
# File 'lib/sbsm/state.rb', line 39 def value @value end |