Class: RescueUniqueConstraint::Index

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, field) ⇒ Index

Returns a new instance of Index.



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

def initialize(name, field)
  @name = name
  @field = field
end

Instance Attribute Details

#fieldObject (readonly)

Returns the value of attribute field.



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

def field
  @field
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end