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
47 48 49 |
# File 'lib/exwiw.rb', line 47 def adapter @adapter end |
#database_name ⇒ Object
Returns the value of attribute database_name
47 48 49 |
# File 'lib/exwiw.rb', line 47 def database_name @database_name end |
#host ⇒ Object
Returns the value of attribute host
47 48 49 |
# File 'lib/exwiw.rb', line 47 def host @host end |
#password ⇒ Object
Returns the value of attribute password
47 48 49 |
# File 'lib/exwiw.rb', line 47 def password @password end |
#port ⇒ Object
Returns the value of attribute port
47 48 49 |
# File 'lib/exwiw.rb', line 47 def port @port end |
#uri ⇒ Object
Returns the value of attribute uri
47 48 49 |
# File 'lib/exwiw.rb', line 47 def uri @uri end |
#user ⇒ Object
Returns the value of attribute user
47 48 49 |
# File 'lib/exwiw.rb', line 47 def user @user end |