Method: Moped::Uri#database

Defined in:
lib/moped/uri.rb

#databaseString

Get the database provided in the URI.

Examples:

Get the database.

uri.database

Returns:

  • (String)

    The database.

Since:

  • 1.3.0



84
85
86
# File 'lib/moped/uri.rb', line 84

def database
  @database ||= match[9]
end