Class: AnnotationType

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

Overview

ActiveRecord model of MSF AnnotationType

Example:

AnnotationType.find(1)

AnnotationType.first.name

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.primary_keyObject



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

def self.primary_key
  :AnnotationTypeId
end

.table_nameObject



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

def self.table_name
  :AnnotationTypes
end

Instance Method Details

#annotation_type_idObject



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

def annotation_type_id
  self.AnnotationTypeId
end

#descriptionObject



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

def description
  self.Description
end

#nameObject



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

def name
  self.Name
end