Class: Exwiw::ConnectionConfig
- Inherits:
-
Struct
- Object
- Struct
- Exwiw::ConnectionConfig
- Defined in:
- lib/exwiw.rb
Overview
‘uri` is an optional full connection string (currently only honored by the mongodb adapter, e.g. `mongodb+srv://…`). When present it is the source of truth for the connection — host/port/user/password are ignored — so TLS, replica_set, auth_source, etc. can be expressed via the URI’s query string.
Instance Attribute Summary collapse
-
#adapter ⇒ Object
Returns the value of attribute adapter.
-
#database_name ⇒ Object
Returns the value of attribute database_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.
-
#uri ⇒ Object
Returns the value of attribute uri.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Attribute Details
#adapter ⇒ Object
Returns the value of attribute adapter
53 54 55 |
# File 'lib/exwiw.rb', line 53 def adapter @adapter end |
#database_name ⇒ Object
Returns the value of attribute database_name
53 54 55 |
# File 'lib/exwiw.rb', line 53 def database_name @database_name end |
#host ⇒ Object
Returns the value of attribute host
53 54 55 |
# File 'lib/exwiw.rb', line 53 def host @host end |
#password ⇒ Object
Returns the value of attribute password
53 54 55 |
# File 'lib/exwiw.rb', line 53 def password @password end |
#port ⇒ Object
Returns the value of attribute port
53 54 55 |
# File 'lib/exwiw.rb', line 53 def port @port end |
#uri ⇒ Object
Returns the value of attribute uri
53 54 55 |
# File 'lib/exwiw.rb', line 53 def uri @uri end |
#user ⇒ Object
Returns the value of attribute user
53 54 55 |
# File 'lib/exwiw.rb', line 53 def user @user end |