Class: Notifyor::Configuration
- Inherits:
-
Object
- Object
- Notifyor::Configuration
- Defined in:
- lib/notifyor/configuration.rb
Instance Attribute Summary collapse
-
#redis_connection ⇒ Object
Returns the value of attribute redis_connection.
-
#redis_port ⇒ Object
Returns the value of attribute redis_port.
-
#ssh_host ⇒ Object
Returns the value of attribute ssh_host.
-
#ssh_port ⇒ Object
Returns the value of attribute ssh_port.
-
#ssh_user ⇒ Object
Returns the value of attribute ssh_user.
-
#tunnel_port ⇒ Object
Returns the value of attribute tunnel_port.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 15 16 17 18 |
# File 'lib/notifyor/configuration.rb', line 12 def initialize @redis_connection = ::Redis.new @ssh_port = '22' @ssh_host = 'localhost' @tunnel_port ='2000' @redis_port = '6379' end |
Instance Attribute Details
#redis_connection ⇒ Object
Returns the value of attribute redis_connection.
5 6 7 |
# File 'lib/notifyor/configuration.rb', line 5 def redis_connection @redis_connection end |
#redis_port ⇒ Object
Returns the value of attribute redis_port.
10 11 12 |
# File 'lib/notifyor/configuration.rb', line 10 def redis_port @redis_port end |
#ssh_host ⇒ Object
Returns the value of attribute ssh_host.
6 7 8 |
# File 'lib/notifyor/configuration.rb', line 6 def ssh_host @ssh_host end |
#ssh_port ⇒ Object
Returns the value of attribute ssh_port.
8 9 10 |
# File 'lib/notifyor/configuration.rb', line 8 def ssh_port @ssh_port end |
#ssh_user ⇒ Object
Returns the value of attribute ssh_user.
7 8 9 |
# File 'lib/notifyor/configuration.rb', line 7 def ssh_user @ssh_user end |
#tunnel_port ⇒ Object
Returns the value of attribute tunnel_port.
9 10 11 |
# File 'lib/notifyor/configuration.rb', line 9 def tunnel_port @tunnel_port end |