Class: Bio::Feature::Qualifier
- Inherits:
-
Object
- Object
- Bio::Feature::Qualifier
- Defined in:
- lib/feature.rb
Overview
Container for qualifier-value pairs for sequence features.
Instance Attribute Summary collapse
-
#qualifier ⇒ Object
readonly
Qualifier name in String.
-
#value ⇒ Object
readonly
Qualifier value in String.
Instance Method Summary collapse
-
#initialize(key, value) ⇒ Qualifier
constructor
Creates a new Bio::Feature::Qualifier object.
Constructor Details
#initialize(key, value) ⇒ Qualifier
Creates a new Bio::Feature::Qualifier object
Arguments:
-
(required) key: key of the qualifier (e.g. “gene”)
-
(required) value: value of the qualifier (e.g. “CYP2D6”)
- Returns
-
Bio::Feature::Qualifier object
105 106 107 |
# File 'lib/feature.rb', line 105 def initialize(key, value) @qualifier, @value = key, value end |
Instance Attribute Details
#qualifier ⇒ Object (readonly)
Qualifier name in String
110 111 112 |
# File 'lib/feature.rb', line 110 def qualifier @qualifier end |
#value ⇒ Object (readonly)
Qualifier value in String
113 114 115 |
# File 'lib/feature.rb', line 113 def value @value end |