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, scope) ⇒ Index

Returns a new instance of Index.



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

def initialize(name, field, scope)
  @name = name
  @field = field
  @scope = scope
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

#scopeObject (readonly)

Returns the value of attribute scope.



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

def scope
  @scope
end