Class: Azure::ServiceBus::FalseFilter
- Inherits:
-
SqlFilter
- Object
- RuleAspect
- Filter
- SqlFilter
- Azure::ServiceBus::FalseFilter
- Defined in:
- lib/azure/service_bus/false_filter.rb
Instance Attribute Summary
Attributes inherited from SqlFilter
#compatibility_level, #sql_expression
Instance Method Summary collapse
-
#initialize(hash = nil) ⇒ FalseFilter
constructor
Public: Initialize the SQL false Filter.
Methods inherited from SqlFilter
Methods inherited from RuleAspect
Constructor Details
#initialize(hash = nil) ⇒ FalseFilter
Public: Initialize the SQL false 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/false_filter.rb', line 31 def initialize(hash=nil) hash = {} unless hash hash[:sql_expression] = "1 = 0" unless hash[:sql_expression] super(hash) end |