Class: MS::Lipid
- Inherits:
-
Object
- Object
- MS::Lipid
- Defined in:
- lib/ms/lipid.rb,
lib/ms/lipid/ion.rb,
lib/ms/lipid/search.rb,
lib/ms/lipid/search/bin.rb,
lib/ms/lipid/search/hit.rb,
lib/ms/lipid/modification.rb,
lib/ms/lipid/search/query.rb,
lib/ms/lipid/search/db_isobar_group.rb,
lib/ms/lipid/search/probability_distribution.rb
Defined Under Namespace
Classes: Ion, Modification, Search
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*args) ⇒ Lipid
constructor
A new instance of Lipid.
- #inspect ⇒ Object
Constructor Details
#initialize(*args) ⇒ Lipid
Returns a new instance of Lipid.
10 11 12 |
# File 'lib/ms/lipid.rb', line 10 def initialize(*args) (@lm_id,@common_name,@systematic_name,@formula,@mass,@category,@main_class,@sub_class) = args end |
Class Method Details
.members ⇒ Object
4 5 6 |
# File 'lib/ms/lipid.rb', line 4 def self.members [:lm_id,:common_name,:systematic_name,:formula,:mass,:category,:main_class,:sub_class] end |
Instance Method Details
#inspect ⇒ Object
14 15 16 17 |
# File 'lib/ms/lipid.rb', line 14 def inspect cut_common_name = (common_name.size <= 20) ? common_name : (common_name[0,20]+"...") "<#{lm_id}: #{formula}: #{mass} #{cut_common_name}>" end |