Class: Wary::Status::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/wary/status.rb

Direct Known Subclasses

Alert, Failure, OK

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ Base

Returns a new instance of Base.



6
7
8
# File 'lib/wary/status.rb', line 6

def initialize(message)
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



4
5
6
# File 'lib/wary/status.rb', line 4

def message
  @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_symObject



14
15
16
# File 'lib/wary/status.rb', line 14

def to_sym
  NotImplementedError
end