Class: Bio::Feature::Qualifier

Inherits:
Object
  • Object
show all
Defined in:
lib/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


105
106
107
# File 'lib/feature.rb', line 105

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

Instance Attribute Details

#qualifierObject (readonly)

Qualifier name in String


110
111
112
# File 'lib/feature.rb', line 110

def qualifier
  @qualifier
end

#valueObject (readonly)

Qualifier value in String


113
114
115
# File 'lib/feature.rb', line 113

def value
  @value
end