Class: Azure::ServiceBus::CorrelationFilter
- Inherits:
-
Filter
- Object
- RuleAspect
- Filter
- Azure::ServiceBus::CorrelationFilter
- Defined in:
- lib/azure/service_bus/correlation_filter.rb
Instance Attribute Summary collapse
-
#correlation_id ⇒ Object
CorrelationId.
Instance Method Summary collapse
-
#initialize(hash = nil) ⇒ CorrelationFilter
constructor
Public: Initialize the Correlation Id Filter.
- #to_hash(hash = {}) ⇒ Object
Methods inherited from RuleAspect
Constructor Details
#initialize(hash = nil) ⇒ CorrelationFilter
Public: Initialize the Correlation Id Filter.
Attributes
-
hash
- The resource options Hash
Options
Accepted key/value pairs in options parameter are:
-
:correlation_id
- The correlation identifier.
31 32 33 34 35 |
# File 'lib/azure/service_bus/correlation_filter.rb', line 31 def initialize(hash=nil) hash = {} unless hash @correlation_id = hash[:correlation_id] super() end |
Instance Attribute Details
#correlation_id ⇒ Object
CorrelationId
37 38 39 |
# File 'lib/azure/service_bus/correlation_filter.rb', line 37 def correlation_id @correlation_id end |
Instance Method Details
#to_hash(hash = {}) ⇒ Object
39 40 41 42 |
# File 'lib/azure/service_bus/correlation_filter.rb', line 39 def to_hash(hash={}) hash[:correlation_id]=correlation_id if correlation_id super(hash) end |