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
-
#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
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.
164 165 166 167 168 169 |
# File 'lib/adhearsion/initializer/configuration.rb', line 164 def initialize(overrides = {}) self.host = self.class.default_host self.port = self.class.default_port self.events = self.class.default_events super end |
Instance Attribute Details
#events ⇒ Object
Returns the value of attribute events.
148 149 150 |
# File 'lib/adhearsion/initializer/configuration.rb', line 148 def events @events end |
#host ⇒ Object
Returns the value of attribute host.
148 149 150 |
# File 'lib/adhearsion/initializer/configuration.rb', line 148 def host @host end |
#password ⇒ Object
Returns the value of attribute password.
148 149 150 |
# File 'lib/adhearsion/initializer/configuration.rb', line 148 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
148 149 150 |
# File 'lib/adhearsion/initializer/configuration.rb', line 148 def port @port end |
#username ⇒ Object
Returns the value of attribute username.
148 149 150 |
# File 'lib/adhearsion/initializer/configuration.rb', line 148 def username @username end |
Class Method Details
.default_events ⇒ Object
155 156 157 |
# File 'lib/adhearsion/initializer/configuration.rb', line 155 def default_events false end |
.default_host ⇒ Object
159 160 161 |
# File 'lib/adhearsion/initializer/configuration.rb', line 159 def default_host 'localhost' end |
.default_port ⇒ Object
151 152 153 |
# File 'lib/adhearsion/initializer/configuration.rb', line 151 def default_port 5038 end |