Class: RescueUniqueConstraint::Index
- Inherits:
-
Object
- Object
- RescueUniqueConstraint::Index
- Defined in:
- lib/rescue_unique_constraint/index.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, field) ⇒ Index
constructor
A new instance of Index.
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
#field ⇒ Object (readonly)
Returns the value of attribute field.
3 4 5 |
# File 'lib/rescue_unique_constraint/index.rb', line 3 def field @field end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/rescue_unique_constraint/index.rb', line 3 def name @name end |