Class: AnnotationGroup

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

Overview

ActiveRecord model of MSF AnnotationGroup

Example:

AnnotationGroup.find(1)

AnnotationGroup.first.name

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.primary_keyObject



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

def self.primary_key
  [:AnnotationGroupId, :DatasetId]
end

.table_nameObject



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

def self.table_name
  :AnnotationGroups
end

Instance Method Details

#annotation_group_idObject



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

def annotation_group_id
  self.AnnotationGroupId
end

#color_bObject



32
33
34
# File 'lib/msf/models/annotation_group.rb', line 32

def color_b
  self.ColorB
end

#color_gObject



29
30
31
# File 'lib/msf/models/annotation_group.rb', line 29

def color_g
  self.ColorG
end

#color_rObject



26
27
28
# File 'lib/msf/models/annotation_group.rb', line 26

def color_r
  self.ColorR
end

#dataset_idObject



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

def dataset_id
  self.DatasetId
end

#descriptionObject



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

def description
  self.Description
end

#group_definitionObject



35
36
37
# File 'lib/msf/models/annotation_group.rb', line 35

def group_definition
  self.GroupDefinition
end

#positionObject



23
24
25
# File 'lib/msf/models/annotation_group.rb', line 23

def position
  self.Position
end