Class: GorgMessageSender::Configuration
- Inherits:
-
Object
- Object
- GorgMessageSender::Configuration
- Defined in:
- lib/gorg_message_sender/configuration.rb
Overview
Hold configuration of GorgService in instance variables
Instance Attribute Summary collapse
-
#application_id ⇒ Object
Returns the value of attribute application_id.
-
#durable_exchange ⇒ Object
Returns the value of attribute durable_exchange.
-
#exchange_name ⇒ Object
Returns the value of attribute exchange_name.
-
#host ⇒ Object
Returns the value of attribute host.
-
#password ⇒ Object
Returns the value of attribute password.
-
#port ⇒ Object
Returns the value of attribute port.
-
#user ⇒ Object
Returns the value of attribute user.
-
#vhost ⇒ Object
Returns the value of attribute vhost.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
29 30 31 32 33 34 35 36 37 38 |
# File 'lib/gorg_message_sender/configuration.rb', line 29 def initialize @application_id = "gms" @host = "localhost" @port = 5672 @exchange_name = "exchange" @user = nil @password = nil @vhost = "/" @durable_exchange = true end |
Instance Attribute Details
#application_id ⇒ Object
Returns the value of attribute application_id.
19 20 21 |
# File 'lib/gorg_message_sender/configuration.rb', line 19 def application_id @application_id end |
#durable_exchange ⇒ Object
Returns the value of attribute durable_exchange.
19 20 21 |
# File 'lib/gorg_message_sender/configuration.rb', line 19 def durable_exchange @durable_exchange end |
#exchange_name ⇒ Object
Returns the value of attribute exchange_name.
19 20 21 |
# File 'lib/gorg_message_sender/configuration.rb', line 19 def exchange_name @exchange_name end |
#host ⇒ Object
Returns the value of attribute host.
19 20 21 |
# File 'lib/gorg_message_sender/configuration.rb', line 19 def host @host end |
#password ⇒ Object
Returns the value of attribute password.
19 20 21 |
# File 'lib/gorg_message_sender/configuration.rb', line 19 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
19 20 21 |
# File 'lib/gorg_message_sender/configuration.rb', line 19 def port @port end |
#user ⇒ Object
Returns the value of attribute user.
19 20 21 |
# File 'lib/gorg_message_sender/configuration.rb', line 19 def user @user end |
#vhost ⇒ Object
Returns the value of attribute vhost.
19 20 21 |
# File 'lib/gorg_message_sender/configuration.rb', line 19 def vhost @vhost end |