Method: Azure::ServiceBus::FalseFilter#initialize

Defined in:
lib/azure/service_bus/false_filter.rb

#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