Class: FastaFile

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

Overview

ActiveRecord model of MSF FastaFile

Example:

FastaFile.find(1)

FastaFile.first.file_name

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.primary_keyObject



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

def self.primary_key
  :FastaFileID
end

.table_nameObject



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

def self.table_name
  :FastaFiles
end

Instance Method Details

#fasta_file_idObject



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

def fasta_file_id
  self.FastaFileID
end

#file_hash_codeObject



38
39
40
# File 'lib/msf/models/fasta_file.rb', line 38

def file_hash_code
  self.FileHashCode
end

#file_nameObject



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

def file_name
  self.FileName
end

#file_sizeObject



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

def file_size
  self.FileSize
end

#file_timeObject



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

def file_time
  self.FileTime
end

#hiddenObject



41
42
43
# File 'lib/msf/models/fasta_file.rb', line 41

def hidden
  self.Hidden
end

#is_scheduled_for_deletionObject



47
48
49
# File 'lib/msf/models/fasta_file.rb', line 47

def is_scheduled_for_deletion
  self.IsScheduledForDeletion
end

#is_srf_importObject



44
45
46
# File 'lib/msf/models/fasta_file.rb', line 44

def is_srf_import
  self.IsSrfImport
end

#number_of_amino_acidsObject



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

def number_of_amino_acids
  self.NumberOfAminoAcids
end

#number_of_proteinsObject



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

def number_of_proteins
  self.NumberOfProteins
end

#stateObject



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

def state
  self.State
end

#virtual_file_nameObject



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

def virtual_file_name
  self.VirtualFileName
end