lib/mongo/server/description.rb
def server_type
        return :load_balancer if load_balancer?
        return :arbiter if arbiter?
        return :ghost if ghost?
        return :sharded if mongos?
        return :primary if primary?
        return :secondary if secondary?
        return :standalone if standalone?
        return :other if other?
        :unknown
      end
# Returns the server type as a symbol.
#
# @example Get the server type.
#   description.server_type
#
# @return [ Symbol ] The server type.
#
# @since 2.4.0
Returns the server type as a symbol.
Returns the server type as a symbol .
def server_type
        return :load_balancer if load_balancer?
        return :arbiter if arbiter?
        return :ghost if ghost?
        return :sharded if mongos?
        return :primary if primary?
        return :secondary if secondary?
        return :standalone if standalone?
        return :other if other?
        :unknown
      end
def server_type return :load_balancer if load_balancer? return :arbiter if arbiter? return :ghost if ghost? return :sharded if mongos? return :primary if primary? return :secondary if secondary? return :standalone if standalone? return :other if other? :unknown end
Returns the server type as a symbol.
Returns the server type as a symbol .
The server type.
The server type .
 Symbol 
example
Get the server type. description.server_type
Get the server type . description . server_type
since
None