Class: GorgMessageSender::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/gorg_message_sender/configuration.rb

Overview

Hold configuration of GorgService in instance variables

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_idObject

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_exchangeObject

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_nameObject

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

#hostObject

Returns the value of attribute host.



19
20
21
# File 'lib/gorg_message_sender/configuration.rb', line 19

def host
  @host
end

#passwordObject

Returns the value of attribute password.



19
20
21
# File 'lib/gorg_message_sender/configuration.rb', line 19

def password
  @password
end

#portObject

Returns the value of attribute port.



19
20
21
# File 'lib/gorg_message_sender/configuration.rb', line 19

def port
  @port
end

#userObject

Returns the value of attribute user.



19
20
21
# File 'lib/gorg_message_sender/configuration.rb', line 19

def user
  @user
end

#vhostObject

Returns the value of attribute vhost.



19
20
21
# File 'lib/gorg_message_sender/configuration.rb', line 19

def vhost
  @vhost
end