Class: Adhearsion::VoIP::CallRouting::Rule

Inherits:
Object
  • Object
show all
Defined in:
lib/adhearsion/voip/call_routing.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args, &block) ⇒ Rule

Returns a new instance of Rule.



7
8
9
10
11
# File 'lib/adhearsion/voip/call_routing.rb', line 7

def initialize(*args, &block)
  @options   = args.pop
  @patterns  = Array(args)
  @providers = Array(options[:to])
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/adhearsion/voip/call_routing.rb', line 5

def options
  @options
end

#patternsObject (readonly)

Returns the value of attribute patterns.



5
6
7
# File 'lib/adhearsion/voip/call_routing.rb', line 5

def patterns
  @patterns
end

#providersObject (readonly)

Returns the value of attribute providers.



5
6
7
# File 'lib/adhearsion/voip/call_routing.rb', line 5

def providers
  @providers
end