Class: Bunny::RecordedBinding
Instance Attribute Summary collapse
#channel
Instance Method Summary
collapse
Constructor Details
Returns a new instance of RecordedBinding.
758
759
760
761
762
763
764
765
|
# File 'lib/bunny/topology_registry.rb', line 758
def initialize(ch)
super ch
@source = nil
@destination = nil
@routing_key = nil
@arguments = Hash.new
end
|
Instance Attribute Details
#arguments ⇒ Hash
756
757
758
|
# File 'lib/bunny/topology_registry.rb', line 756
def arguments
@arguments
end
|
#destination ⇒ String
752
753
754
|
# File 'lib/bunny/topology_registry.rb', line 752
def destination
@destination
end
|
#routing_key ⇒ String
754
755
756
|
# File 'lib/bunny/topology_registry.rb', line 754
def routing_key
@routing_key
end
|
#source ⇒ String
750
751
752
|
# File 'lib/bunny/topology_registry.rb', line 750
def source
@source
end
|
Instance Method Details
#==(other) ⇒ Boolean
803
804
805
806
807
808
809
|
# File 'lib/bunny/topology_registry.rb', line 803
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
797
798
799
|
# File 'lib/bunny/topology_registry.rb', line 797
def eql?(other)
self == other
end
|
#hash ⇒ Object
791
792
793
|
# File 'lib/bunny/topology_registry.rb', line 791
def hash
[self.class, @source, @destination, @routing_key, @arguments].hash
end
|
#with_arguments(value) ⇒ Object
786
787
788
789
|
# File 'lib/bunny/topology_registry.rb', line 786
def with_arguments(value)
@arguments = value
self
end
|
#with_destination(value) ⇒ Object
774
775
776
777
|
# File 'lib/bunny/topology_registry.rb', line 774
def with_destination(value)
@destination = value
self
end
|
#with_routing_key(value) ⇒ Object
780
781
782
783
|
# File 'lib/bunny/topology_registry.rb', line 780
def with_routing_key(value)
@routing_key = value
self
end
|
#with_source(value) ⇒ Object
768
769
770
771
|
# File 'lib/bunny/topology_registry.rb', line 768
def with_source(value)
@source = value
self
end
|