Class: Rafflesia::ConfidenceBin

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/proteins/confidence_bin.rb

Constant Summary collapse

HASH_ATTRS =
{
  count: :count,
  label: :label,
  max: :max,
  min: :min
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ConfidenceBin

Returns a new instance of ConfidenceBin.



21
22
23
24
25
26
27
28
# File 'lib/rafflesia/proteins/confidence_bin.rb', line 21

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @count = hash[:count]
  @label = hash[:label]
  @max = hash[:max]
  @min = hash[:min]
end

Instance Attribute Details

#countObject

Returns the value of attribute count.



15
16
17
# File 'lib/rafflesia/proteins/confidence_bin.rb', line 15

def count
  @count
end

#labelObject

Returns the value of attribute label.



15
16
17
# File 'lib/rafflesia/proteins/confidence_bin.rb', line 15

def label
  @label
end

#maxObject

Returns the value of attribute max.



15
16
17
# File 'lib/rafflesia/proteins/confidence_bin.rb', line 15

def max
  @max
end

#minObject

Returns the value of attribute min.



15
16
17
# File 'lib/rafflesia/proteins/confidence_bin.rb', line 15

def min
  @min
end