Module: Avaya::Configuration
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
3 4 5 |
# File 'lib/avaya/configuration.rb', line 3 def host @host end |
#port ⇒ Object
Returns the value of attribute port.
3 4 5 |
# File 'lib/avaya/configuration.rb', line 3 def port @port end |
Instance Method Details
#config(&value) ⇒ Object
6 7 8 9 10 |
# File 'lib/avaya/configuration.rb', line 6 def config(&value) #@host = 'hostnameorip' @port = 69 instance_eval &value end |