Class: Macroape::MotifWithThresholds

Inherits:
Object
  • Object
show all
Defined in:
lib/macroape/motif_with_thresholds.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(model, options = {}) ⇒ MotifWithThresholds

Returns a new instance of MotifWithThresholds.



6
7
8
9
10
# File 'lib/macroape/motif_with_thresholds.rb', line 6

def initialize(model, options = {})
  @model = model
  @rough = options[:rough]
  @precise = options[:precise]
end

Instance Attribute Details

#modelObject

Returns the value of attribute model.



3
4
5
# File 'lib/macroape/motif_with_thresholds.rb', line 3

def model
  @model
end

#preciseObject

Returns the value of attribute precise.



4
5
6
# File 'lib/macroape/motif_with_thresholds.rb', line 4

def precise
  @precise
end

#roughObject

Returns the value of attribute rough.



4
5
6
# File 'lib/macroape/motif_with_thresholds.rb', line 4

def rough
  @rough
end

Instance Method Details

#==(other) ⇒ Object



12
13
14
15
16
# File 'lib/macroape/motif_with_thresholds.rb', line 12

def ==(other)
    (model == other.model) &&
    (rough == other.rough) &&
    (precise == other.precise)
end