Class: Azure::ServiceBus::CorrelationFilter

Inherits:
Filter show all
Defined in:
lib/azure/service_bus/correlation_filter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RuleAspect

from_hash

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_idObject

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