Class: Partitioned::PartitionedBase::Configurator::Data::Index

Inherits:
Object
  • Object
show all
Defined in:
lib/partitioned/partitioned_base/configurator/data.rb

Overview

represents a SQL index

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(field, options = {}) ⇒ Index

Returns a new instance of Index.



11
12
13
14
# File 'lib/partitioned/partitioned_base/configurator/data.rb', line 11

def initialize(field, options = {})
  @field = field
  @options = options
end

Instance Attribute Details

#fieldObject

Returns the value of attribute field.



10
11
12
# File 'lib/partitioned/partitioned_base/configurator/data.rb', line 10

def field
  @field
end

#optionsObject

Returns the value of attribute options.



10
11
12
# File 'lib/partitioned/partitioned_base/configurator/data.rb', line 10

def options
  @options
end