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



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

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

Instance Attribute Details

#qualifierObject (readonly)

Qualifier name in String



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

def qualifier
  @qualifier
end

#valueObject (readonly)

Qualifier value in String



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

def value
  @value
end