Class: Qpid::Proton::Util::Condition

Inherits:
Object
  • Object
show all
Defined in:
lib/util/condition.rb

Instance Method Summary collapse

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_sObject



31
32
33
# File 'lib/util/condition.rb', line 31

def to_s
  "Condition(#{@name}, #{@description}, #{@info})"
end