Class: Adhearsion::Configuration::TelephonyPlatformConfiguration
- Inherits:
-
AbstractConfiguration
- Object
- AbstractConfiguration
- Adhearsion::Configuration::TelephonyPlatformConfiguration
- Defined in:
- lib/adhearsion/initializer/configuration.rb
Overview
Abstract superclass for AsteriskConfiguration and FreeSwitchConfiguration.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#listening_host ⇒ Object
Returns the value of attribute listening_host.
-
#listening_port ⇒ Object
Returns the value of attribute listening_port.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(overrides = {}) ⇒ TelephonyPlatformConfiguration
constructor
A new instance of TelephonyPlatformConfiguration.
Methods included from ConfigurationEntryPoint
Constructor Details
#initialize(overrides = {}) ⇒ TelephonyPlatformConfiguration
Returns a new instance of TelephonyPlatformConfiguration.
131 132 133 134 135 |
# File 'lib/adhearsion/initializer/configuration.rb', line 131 def initialize(overrides = {}) @listening_port = self.class.default_listening_port @listening_host = self.class.default_listening_host super end |
Instance Attribute Details
#listening_host ⇒ Object
Returns the value of attribute listening_host.
119 120 121 |
# File 'lib/adhearsion/initializer/configuration.rb', line 119 def listening_host @listening_host end |
#listening_port ⇒ Object
Returns the value of attribute listening_port.
118 119 120 |
# File 'lib/adhearsion/initializer/configuration.rb', line 118 def listening_port @listening_port end |
Class Method Details
.default_listening_host ⇒ Object
126 127 128 |
# File 'lib/adhearsion/initializer/configuration.rb', line 126 def default_listening_host '0.0.0.0' end |
.default_listening_port ⇒ Object
122 123 124 |
# File 'lib/adhearsion/initializer/configuration.rb', line 122 def default_listening_port abstract_method! end |