Class: Bio::CNLS::Result::NLS
- Inherits:
-
Object
- Object
- Bio::CNLS::Result::NLS
- Defined in:
- lib/bio/cnls_screenscraper/cnls_screenscraper.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#position ⇒ Object
Returns the value of attribute position.
-
#score ⇒ Object
Returns the value of attribute score.
-
#sequence ⇒ Object
Returns the value of attribute sequence.
Instance Method Summary collapse
-
#<=>(another) ⇒ Object
sort by score descending.
Instance Attribute Details
#position ⇒ Object
Returns the value of attribute position.
21 22 23 |
# File 'lib/bio/cnls_screenscraper/cnls_screenscraper.rb', line 21 def position @position end |
#score ⇒ Object
Returns the value of attribute score.
21 22 23 |
# File 'lib/bio/cnls_screenscraper/cnls_screenscraper.rb', line 21 def score @score end |
#sequence ⇒ Object
Returns the value of attribute sequence.
21 22 23 |
# File 'lib/bio/cnls_screenscraper/cnls_screenscraper.rb', line 21 def sequence @sequence end |
Instance Method Details
#<=>(another) ⇒ Object
sort by score descending
24 25 26 |
# File 'lib/bio/cnls_screenscraper/cnls_screenscraper.rb', line 24 def <=>(another) -(@score<=>another.score) end |