Class: MQRPC::Config
- Inherits:
-
Object
- Object
- MQRPC::Config
- Defined in:
- lib/mqrpc/config.rb
Instance Attribute Summary collapse
-
#mqexchange ⇒ Object
readonly
Returns the value of attribute mqexchange.
-
#mqhost ⇒ Object
readonly
Returns the value of attribute mqhost.
-
#mqpass ⇒ Object
readonly
Returns the value of attribute mqpass.
-
#mqport ⇒ Object
readonly
Returns the value of attribute mqport.
-
#mquser ⇒ Object
readonly
Returns the value of attribute mquser.
-
#mqvhost ⇒ Object
readonly
Returns the value of attribute mqvhost.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(options = {}) ⇒ Config
Returns a new instance of Config.
10 11 12 13 14 15 16 17 |
# File 'lib/mqrpc/config.rb', line 10 def initialize( = {}) @mqhost = ["mqhost"] || "localhost" @mqport = ["mqport"] || 5672 @mquser = ["mquser"] || "guest" @mqpass = ["mqpass"] || "guest" @mqvhost = ["mqvhost"] || "/" @mqexchange = ["mqexchange"] || "mqrpc.topic" end |
Instance Attribute Details
#mqexchange ⇒ Object (readonly)
Returns the value of attribute mqexchange.
8 9 10 |
# File 'lib/mqrpc/config.rb', line 8 def mqexchange @mqexchange end |
#mqhost ⇒ Object (readonly)
Returns the value of attribute mqhost.
3 4 5 |
# File 'lib/mqrpc/config.rb', line 3 def mqhost @mqhost end |
#mqpass ⇒ Object (readonly)
Returns the value of attribute mqpass.
6 7 8 |
# File 'lib/mqrpc/config.rb', line 6 def mqpass @mqpass end |
#mqport ⇒ Object (readonly)
Returns the value of attribute mqport.
4 5 6 |
# File 'lib/mqrpc/config.rb', line 4 def mqport @mqport end |
#mquser ⇒ Object (readonly)
Returns the value of attribute mquser.
5 6 7 |
# File 'lib/mqrpc/config.rb', line 5 def mquser @mquser end |
#mqvhost ⇒ Object (readonly)
Returns the value of attribute mqvhost.
7 8 9 |
# File 'lib/mqrpc/config.rb', line 7 def mqvhost @mqvhost end |