Sha256: 293664e8fbe937fc165a9181df102c8eb52fc4c8059edf642b42d7651bcaa7dc

Contents?: true

Size: 945 Bytes

Versions: 16

Compression:

Stored size: 945 Bytes

Contents

module OrientDB

  class LocalStorage

    def get_cluster(name_or_id)
      case name_or_id
        when Integer
          getClusterById name_or_id
        else
          getClusterByName name_or_id.to_s
      end
    end

    def inspect
      "#<OrientDB::LocalStorage:#{hashCode}>"
    end

    alias :to_s :inspect

  end

  class RemoteStorage

    def get_cluster(name_or_id)
      case name_or_id
        when Integer
          getClusterById name_or_id
        else
          getClusterByName name_or_id.to_s
      end
    end

    def inspect
      "#<OrientDB::RemoteStorage:#{hashCode}>"
    end

    alias :to_s :inspect

  end

  class LocalCluster

    def inspect
      "#<OrientDB::LocalCluster:#{getId} name=#{getName.inspect}>"
    end

    alias :to_s :inspect

  end

  class LogicalCluster

    def inspect
      "#<OrientDB::LogicalCluster:#{getId} name=#{getName.inspect}>"
    end

    alias :to_s :inspect

  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
orientdb-0.0.25-jruby lib/orientdb/storage.rb
orientdb-0.0.24-jruby lib/orientdb/storage.rb
orientdb-0.0.23-jruby lib/orientdb/storage.rb
orientdb-0.0.22-jruby lib/orientdb/storage.rb
orientdb-0.0.21-jruby lib/orientdb/storage.rb
orientdb-0.0.20-jruby lib/orientdb/storage.rb
orientdb-0.0.19-jruby lib/orientdb/storage.rb
orientdb-0.0.17-jruby lib/orientdb/storage.rb
orientdb-0.0.16-jruby lib/orientdb/storage.rb
orientdb-0.0.15-jruby lib/orientdb/storage.rb
orientdb-0.0.14-jruby lib/orientdb/storage.rb
orientdb-0.0.12-jruby lib/orientdb/storage.rb
orientdb-0.0.11-jruby lib/orientdb/storage.rb
orientdb-0.0.10-jruby lib/orientdb/storage.rb
orientdb-0.0.9-jruby lib/orientdb/storage.rb
orientdb-0.0.8-jruby lib/orientdb/storage.rb