Class: Rafflesia::ConfidenceBin
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ConfidenceBin
- 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
-
#count ⇒ Object
Returns the value of attribute count.
-
#label ⇒ Object
Returns the value of attribute label.
-
#max ⇒ Object
Returns the value of attribute max.
-
#min ⇒ Object
Returns the value of attribute min.
Instance Method Summary collapse
-
#initialize(json) ⇒ ConfidenceBin
constructor
A new instance of ConfidenceBin.
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
#count ⇒ Object
Returns the value of attribute count.
15 16 17 |
# File 'lib/rafflesia/proteins/confidence_bin.rb', line 15 def count @count end |
#label ⇒ Object
Returns the value of attribute label.
15 16 17 |
# File 'lib/rafflesia/proteins/confidence_bin.rb', line 15 def label @label end |
#max ⇒ Object
Returns the value of attribute max.
15 16 17 |
# File 'lib/rafflesia/proteins/confidence_bin.rb', line 15 def max @max end |
#min ⇒ Object
Returns the value of attribute min.
15 16 17 |
# File 'lib/rafflesia/proteins/confidence_bin.rb', line 15 def min @min end |