Class: Jobi::Config::Rabbitmq
- Inherits:
-
Object
- Object
- Jobi::Config::Rabbitmq
- Defined in:
- lib/jobi/config/rabbitmq.rb
Instance Attribute Summary collapse
-
#auth_mechanism ⇒ Object
Returns the value of attribute auth_mechanism.
-
#automatically_recover ⇒ Object
Returns the value of attribute automatically_recover.
-
#continuation_timeout ⇒ Object
Returns the value of attribute continuation_timeout.
-
#frame_max ⇒ Object
Returns the value of attribute frame_max.
-
#heartbeat ⇒ Object
Returns the value of attribute heartbeat.
-
#host ⇒ Object
Returns the value of attribute host.
-
#network_recovery_interval ⇒ Object
Returns the value of attribute network_recovery_interval.
-
#pass ⇒ Object
Returns the value of attribute pass.
-
#port ⇒ Object
Returns the value of attribute port.
-
#ssl ⇒ Object
Returns the value of attribute ssl.
-
#threaded ⇒ Object
Returns the value of attribute threaded.
-
#user ⇒ Object
Returns the value of attribute user.
-
#vhost ⇒ Object
Returns the value of attribute vhost.
Instance Method Summary collapse
-
#initialize ⇒ Rabbitmq
constructor
A new instance of Rabbitmq.
- #to_h ⇒ Object
Constructor Details
#initialize ⇒ Rabbitmq
Returns a new instance of Rabbitmq.
9 10 11 12 13 |
# File 'lib/jobi/config/rabbitmq.rb', line 9 def initialize setup_server_config setup_network_config setup_processing_config end |
Instance Attribute Details
#auth_mechanism ⇒ Object
Returns the value of attribute auth_mechanism.
4 5 6 |
# File 'lib/jobi/config/rabbitmq.rb', line 4 def auth_mechanism @auth_mechanism end |
#automatically_recover ⇒ Object
Returns the value of attribute automatically_recover.
4 5 6 |
# File 'lib/jobi/config/rabbitmq.rb', line 4 def automatically_recover @automatically_recover end |
#continuation_timeout ⇒ Object
Returns the value of attribute continuation_timeout.
4 5 6 |
# File 'lib/jobi/config/rabbitmq.rb', line 4 def continuation_timeout @continuation_timeout end |
#frame_max ⇒ Object
Returns the value of attribute frame_max.
4 5 6 |
# File 'lib/jobi/config/rabbitmq.rb', line 4 def frame_max @frame_max end |
#heartbeat ⇒ Object
Returns the value of attribute heartbeat.
4 5 6 |
# File 'lib/jobi/config/rabbitmq.rb', line 4 def heartbeat @heartbeat end |
#host ⇒ Object
Returns the value of attribute host.
4 5 6 |
# File 'lib/jobi/config/rabbitmq.rb', line 4 def host @host end |
#network_recovery_interval ⇒ Object
Returns the value of attribute network_recovery_interval.
4 5 6 |
# File 'lib/jobi/config/rabbitmq.rb', line 4 def network_recovery_interval @network_recovery_interval end |
#pass ⇒ Object
Returns the value of attribute pass.
4 5 6 |
# File 'lib/jobi/config/rabbitmq.rb', line 4 def pass @pass end |
#port ⇒ Object
Returns the value of attribute port.
4 5 6 |
# File 'lib/jobi/config/rabbitmq.rb', line 4 def port @port end |
#ssl ⇒ Object
Returns the value of attribute ssl.
4 5 6 |
# File 'lib/jobi/config/rabbitmq.rb', line 4 def ssl @ssl end |
#threaded ⇒ Object
Returns the value of attribute threaded.
4 5 6 |
# File 'lib/jobi/config/rabbitmq.rb', line 4 def threaded @threaded end |
#user ⇒ Object
Returns the value of attribute user.
4 5 6 |
# File 'lib/jobi/config/rabbitmq.rb', line 4 def user @user end |
#vhost ⇒ Object
Returns the value of attribute vhost.
4 5 6 |
# File 'lib/jobi/config/rabbitmq.rb', line 4 def vhost @vhost end |
Instance Method Details
#to_h ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/jobi/config/rabbitmq.rb', line 15 def to_h { host: @host, port: @port, user: @user, pass: @pass, vhost: @vhost, auth_mechanism: @auth_mechanism, heartbeat: @heartbeat, automatically_recover: @automatically_recover, network_recovery_interval: @network_recovery_interval, ssl: @ssl, threaded: @threaded, continuation_timeout: @continuation_timeout, frame_max: @frame_max } end |