Class: Unitsdb::Database::UniquenessValidator::Result
- Inherits:
-
Struct
- Object
- Struct
- Unitsdb::Database::UniquenessValidator::Result
- Defined in:
- lib/unitsdb/database/uniqueness_validator.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#short ⇒ Object
Returns the value of attribute short.
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
20 21 22 |
# File 'lib/unitsdb/database/uniqueness_validator.rb', line 20 def id @id end |
#short ⇒ Object
Returns the value of attribute short
20 21 22 |
# File 'lib/unitsdb/database/uniqueness_validator.rb', line 20 def short @short end |
Instance Method Details
#empty? ⇒ Boolean
21 22 23 |
# File 'lib/unitsdb/database/uniqueness_validator.rb', line 21 def empty? short.empty? && id.empty? end |