Class: Adhearsion::VoIP::CallRouting::Rule
- Defined in:
- lib/adhearsion/voip/call_routing.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#patterns ⇒ Object
readonly
Returns the value of attribute patterns.
-
#providers ⇒ Object
readonly
Returns the value of attribute providers.
Instance Method Summary collapse
-
#initialize(*args, &block) ⇒ Rule
constructor
A new instance of Rule.
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([:to]) end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/adhearsion/voip/call_routing.rb', line 5 def @options end |
#patterns ⇒ Object (readonly)
Returns the value of attribute patterns.
5 6 7 |
# File 'lib/adhearsion/voip/call_routing.rb', line 5 def patterns @patterns end |
#providers ⇒ Object (readonly)
Returns the value of attribute providers.
5 6 7 |
# File 'lib/adhearsion/voip/call_routing.rb', line 5 def providers @providers end |