Class: TaxonomyName

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/msf/models/taxonomy_name.rb

Overview

ActiveRecord model of MSF TaxonomyName

Example:

TaxonomyName.find(1)
TaxonomyName.first.name

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.primary_keyObject



11
12
13
# File 'lib/msf/models/taxonomy_name.rb', line 11

def self.primary_key
  :TaxonomyID
end

.table_nameObject



8
9
10
# File 'lib/msf/models/taxonomy_name.rb', line 8

def self.table_name
  :TaxonomyNames
end

Instance Method Details

#nameObject



17
18
19
# File 'lib/msf/models/taxonomy_name.rb', line 17

def name
  self.Name
end

#name_categoryObject



20
21
22
# File 'lib/msf/models/taxonomy_name.rb', line 20

def name_category
  self.NameCategory
end

#taxonomy_idObject



14
15
16
# File 'lib/msf/models/taxonomy_name.rb', line 14

def taxonomy_id
  self.TaxonomyID
end