Class: Adhearsion::Configuration::AsteriskConfiguration::AMIConfiguration
- Inherits:
-
Adhearsion::Configuration::AbstractConfiguration
- Object
- Adhearsion::Configuration::AbstractConfiguration
- Adhearsion::Configuration::AsteriskConfiguration::AMIConfiguration
- Defined in:
- lib/adhearsion/initializer/configuration.rb
Instance Attribute Summary collapse
-
#auto_reconnect ⇒ Object
Returns the value of attribute auto_reconnect.
-
#events ⇒ Object
Returns the value of attribute events.
-
#host ⇒ Object
Returns the value of attribute host.
-
#password ⇒ Object
Returns the value of attribute password.
-
#port ⇒ Object
Returns the value of attribute port.
-
#username ⇒ Object
Returns the value of attribute username.
Class Method Summary collapse
- .default_auto_reconnect ⇒ Object
- .default_events ⇒ Object
- .default_host ⇒ Object
- .default_port ⇒ Object
Instance Method Summary collapse
-
#initialize(overrides = {}) ⇒ AMIConfiguration
constructor
A new instance of AMIConfiguration.
Methods included from ConfigurationEntryPoint
Constructor Details
#initialize(overrides = {}) ⇒ AMIConfiguration
Returns a new instance of AMIConfiguration.
187 188 189 190 191 192 193 |
# File 'lib/adhearsion/initializer/configuration.rb', line 187 def initialize(overrides = {}) self.host = self.class.default_host self.port = self.class.default_port self.events = self.class.default_events self.auto_reconnect = self.class.default_auto_reconnect super end |
Instance Attribute Details
#auto_reconnect ⇒ Object
Returns the value of attribute auto_reconnect.
167 168 169 |
# File 'lib/adhearsion/initializer/configuration.rb', line 167 def auto_reconnect @auto_reconnect end |
#events ⇒ Object
Returns the value of attribute events.
167 168 169 |
# File 'lib/adhearsion/initializer/configuration.rb', line 167 def events @events end |
#host ⇒ Object
Returns the value of attribute host.
167 168 169 |
# File 'lib/adhearsion/initializer/configuration.rb', line 167 def host @host end |
#password ⇒ Object
Returns the value of attribute password.
167 168 169 |
# File 'lib/adhearsion/initializer/configuration.rb', line 167 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
167 168 169 |
# File 'lib/adhearsion/initializer/configuration.rb', line 167 def port @port end |
#username ⇒ Object
Returns the value of attribute username.
167 168 169 |
# File 'lib/adhearsion/initializer/configuration.rb', line 167 def username @username end |
Class Method Details
.default_auto_reconnect ⇒ Object
182 183 184 |
# File 'lib/adhearsion/initializer/configuration.rb', line 182 def default_auto_reconnect true end |
.default_events ⇒ Object
174 175 176 |
# File 'lib/adhearsion/initializer/configuration.rb', line 174 def default_events false end |
.default_host ⇒ Object
178 179 180 |
# File 'lib/adhearsion/initializer/configuration.rb', line 178 def default_host 'localhost' end |
.default_port ⇒ Object
170 171 172 |
# File 'lib/adhearsion/initializer/configuration.rb', line 170 def default_port 5038 end |