Class: Bunny::RecordedBinding
Instance Attribute Summary collapse
#channel
Instance Method Summary
collapse
Constructor Details
Returns a new instance of RecordedBinding.
756
757
758
759
760
761
762
763
|
# File 'lib/bunny/topology_registry.rb', line 756
def initialize(ch)
super ch
@source = nil
@destination = nil
@routing_key = nil
@arguments = Hash.new
end
|
Instance Attribute Details
#arguments ⇒ Hash
754
755
756
|
# File 'lib/bunny/topology_registry.rb', line 754
def arguments
@arguments
end
|
#destination ⇒ String
750
751
752
|
# File 'lib/bunny/topology_registry.rb', line 750
def destination
@destination
end
|
#routing_key ⇒ String
752
753
754
|
# File 'lib/bunny/topology_registry.rb', line 752
def routing_key
@routing_key
end
|
#source ⇒ String
748
749
750
|
# File 'lib/bunny/topology_registry.rb', line 748
def source
@source
end
|
Instance Method Details
#==(other) ⇒ Boolean
801
802
803
804
805
806
807
|
# File 'lib/bunny/topology_registry.rb', line 801
def ==(other)
other.class == self.class &&
other.source == self.source &&
other.destination == self.destination &&
other.routing_key == self.routing_key &&
other.arguments == self.arguments
end
|
#eql?(other) ⇒ Boolean
795
796
797
|
# File 'lib/bunny/topology_registry.rb', line 795
def eql?(other)
self == other
end
|
#hash ⇒ Object
789
790
791
|
# File 'lib/bunny/topology_registry.rb', line 789
def hash
[self.class, @source, @destination, @routing_key, @arguments].hash
end
|
#with_arguments(value) ⇒ Object
784
785
786
787
|
# File 'lib/bunny/topology_registry.rb', line 784
def with_arguments(value)
@arguments = value
self
end
|
#with_destination(value) ⇒ Object
772
773
774
775
|
# File 'lib/bunny/topology_registry.rb', line 772
def with_destination(value)
@destination = value
self
end
|
#with_routing_key(value) ⇒ Object
778
779
780
781
|
# File 'lib/bunny/topology_registry.rb', line 778
def with_routing_key(value)
@routing_key = value
self
end
|
#with_source(value) ⇒ Object
766
767
768
769
|
# File 'lib/bunny/topology_registry.rb', line 766
def with_source(value)
@source = value
self
end
|