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

#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



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

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

Instance Attribute Details

#qualifierObject (readonly)

Qualifier name in String



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

def qualifier
  @qualifier
end

#valueObject (readonly)

Qualifier value in String



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

def value
  @value
end