Class: Unitsdb::Database::UniquenessValidator::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/unitsdb/database/uniqueness_validator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



20
21
22
# File 'lib/unitsdb/database/uniqueness_validator.rb', line 20

def id
  @id
end

#shortObject

Returns the value of attribute short

Returns:

  • (Object)

    the current value of short



20
21
22
# File 'lib/unitsdb/database/uniqueness_validator.rb', line 20

def short
  @short
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/unitsdb/database/uniqueness_validator.rb', line 21

def empty?
  short.empty? && id.empty?
end