Class: Azure::ServiceBus::TrueFilter

Inherits:
SqlFilter show all
Defined in:
lib/azure/service_bus/true_filter.rb

Instance Attribute Summary

Attributes inherited from SqlFilter

#compatibility_level, #sql_expression

Instance Method Summary collapse

Methods inherited from SqlFilter

#to_hash

Methods inherited from RuleAspect

from_hash, #to_hash

Constructor Details

#initialize(hash = nil) ⇒ TrueFilter

Public: Initialize the SQL True Filter.

Attributes

  • hash - The resource options Hash

Options

Accepted key/value pairs in options parameter are:

  • :sql_expression - The SQL expression.



31
32
33
34
35
# File 'lib/azure/service_bus/true_filter.rb', line 31

def initialize(hash=nil)
  hash = {} unless hash
  hash[:sql_expression] = "1 = 1" unless hash[:sql_expression]
  super(hash)
end