Class: Unitsdb::Database::ReferencePair

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

Overview

A normalized reference pair. id and type are strings.

Instance Attribute Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



175
176
177
# File 'lib/unitsdb/database/reference_validator.rb', line 175

def id
  @id
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



175
176
177
# File 'lib/unitsdb/database/reference_validator.rb', line 175

def type
  @type
end