Method: Eternity::Index#initialize

Defined in:
lib/eternity/index.rb

#initialize(name = nil) ⇒ Index

Returns a new instance of Index.



6
7
8
9
10
# File 'lib/eternity/index.rb', line 6

def initialize(name=nil)
  @name = name ? name.to_s : SecureRandom.uuid
  super connection: Eternity.connection,
        id: Eternity.keyspace[:index][@name]
end