Class: ActiveRecordSchema::Index

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Index.



4
5
6
7
# File 'lib/active_record_schema/index.rb', line 4

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



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

def options
  @options
end