Class: Jobi::Config::Rabbitmq

Inherits:
Object
  • Object
show all
Defined in:
lib/jobi/config/rabbitmq.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRabbitmq

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_mechanismObject

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_recoverObject

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_timeoutObject

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_maxObject

Returns the value of attribute frame_max.



4
5
6
# File 'lib/jobi/config/rabbitmq.rb', line 4

def frame_max
  @frame_max
end

#heartbeatObject

Returns the value of attribute heartbeat.



4
5
6
# File 'lib/jobi/config/rabbitmq.rb', line 4

def heartbeat
  @heartbeat
end

#hostObject

Returns the value of attribute host.



4
5
6
# File 'lib/jobi/config/rabbitmq.rb', line 4

def host
  @host
end

#network_recovery_intervalObject

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

#passObject

Returns the value of attribute pass.



4
5
6
# File 'lib/jobi/config/rabbitmq.rb', line 4

def pass
  @pass
end

#portObject

Returns the value of attribute port.



4
5
6
# File 'lib/jobi/config/rabbitmq.rb', line 4

def port
  @port
end

#sslObject

Returns the value of attribute ssl.



4
5
6
# File 'lib/jobi/config/rabbitmq.rb', line 4

def ssl
  @ssl
end

#threadedObject

Returns the value of attribute threaded.



4
5
6
# File 'lib/jobi/config/rabbitmq.rb', line 4

def threaded
  @threaded
end

#userObject

Returns the value of attribute user.



4
5
6
# File 'lib/jobi/config/rabbitmq.rb', line 4

def user
  @user
end

#vhostObject

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_hObject



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