Class: Wary::Status::Base
- Inherits:
-
Object
- Object
- Wary::Status::Base
- Defined in:
- lib/wary/status.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
- #==(status_symbol) ⇒ Object
-
#initialize(message) ⇒ Base
constructor
A new instance of Base.
- #to_sym ⇒ Object
Constructor Details
#initialize(message) ⇒ Base
Returns a new instance of Base.
6 7 8 |
# File 'lib/wary/status.rb', line 6 def initialize() @message = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
4 5 6 |
# File 'lib/wary/status.rb', line 4 def @message end |
Instance Method Details
#==(status_symbol) ⇒ Object
10 11 12 |
# File 'lib/wary/status.rb', line 10 def ==(status_symbol) status_symbol == to_sym end |
#to_sym ⇒ Object
14 15 16 |
# File 'lib/wary/status.rb', line 14 def to_sym NotImplementedError end |