Class: Bio::Feature::Qualifier

Inherits:
Object
  • Object
show all
Defined in:
lib/bio/feature.rb

Overview

Container for qualifier-value pairs for sequence features.

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Qualifier) initialize(key, value)

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



123
124
125
# File 'lib/bio/feature.rb', line 123

def initialize(key, value)
  @qualifier, @value = key, value
end

Instance Attribute Details

- (Object) qualifier (readonly)

Qualifier name in String



128
129
130
# File 'lib/bio/feature.rb', line 128

def qualifier
  @qualifier
end

- (Object) value (readonly)

Qualifier value in String



131
132
133
# File 'lib/bio/feature.rb', line 131

def value
  @value
end