Class: Index

Inherits:
Object
  • Object
show all
Defined in:
lib/redisant/index.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, klass, options) ⇒ Index

Returns a new instance of Index.



4
5
6
7
8
9
# File 'lib/redisant/index.rb', line 4

def initialize name, klass, options
  @name = name.to_s
  @class = klass
  @options = options
  @type = options[:type].to_s
end

Instance Attribute Details

#classObject (readonly)

Returns the value of attribute class.



3
4
5
# File 'lib/redisant/index.rb', line 3

def class
  @class
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/redisant/index.rb', line 3

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



3
4
5
# File 'lib/redisant/index.rb', line 3

def options
  @options
end

#orderObject (readonly)

Returns the value of attribute order.



3
4
5
# File 'lib/redisant/index.rb', line 3

def order
  @order
end

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/redisant/index.rb', line 3

def type
  @type
end