Class: Exwiw::ConnectionConfig

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#adapterObject

Returns the value of attribute adapter

Returns:

  • (Object)

    the current value of adapter



47
48
49
# File 'lib/exwiw.rb', line 47

def adapter
  @adapter
end

#database_nameObject

Returns the value of attribute database_name

Returns:

  • (Object)

    the current value of database_name



47
48
49
# File 'lib/exwiw.rb', line 47

def database_name
  @database_name
end

#hostObject

Returns the value of attribute host

Returns:

  • (Object)

    the current value of host



47
48
49
# File 'lib/exwiw.rb', line 47

def host
  @host
end

#passwordObject

Returns the value of attribute password

Returns:

  • (Object)

    the current value of password



47
48
49
# File 'lib/exwiw.rb', line 47

def password
  @password
end

#portObject

Returns the value of attribute port

Returns:

  • (Object)

    the current value of port



47
48
49
# File 'lib/exwiw.rb', line 47

def port
  @port
end

#uriObject

Returns the value of attribute uri

Returns:

  • (Object)

    the current value of uri



47
48
49
# File 'lib/exwiw.rb', line 47

def uri
  @uri
end

#userObject

Returns the value of attribute user

Returns:

  • (Object)

    the current value of user



47
48
49
# File 'lib/exwiw.rb', line 47

def user
  @user
end