Class: Qpid::Proton::Util::Condition
- Inherits:
-
Object
- Object
- Qpid::Proton::Util::Condition
- Defined in:
- lib/util/condition.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name, description = nil, info = nil) ⇒ Condition
constructor
A new instance of Condition.
- #to_s ⇒ Object
Constructor Details
#initialize(name, description = nil, info = nil) ⇒ Condition
Returns a new instance of Condition.
24 25 26 27 28 |
# File 'lib/util/condition.rb', line 24 def initialize(name, description = nil, info = nil) @name = name @description = description @info = info end |
Instance Method Details
#==(other) ⇒ Object
36 37 38 39 40 41 |
# File 'lib/util/condition.rb', line 36 def ==(other) ((other.class = self.class) && (other.name == self.name) && (other.description == self.description) && (other.info == self.info)) end |
#to_s ⇒ Object
31 32 33 |
# File 'lib/util/condition.rb', line 31 def to_s "Condition(#{@name}, #{@description}, #{@info})" end |