Class: Rafflesia::FoldSearchMonitoringObservation
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::FoldSearchMonitoringObservation
- Defined in:
- lib/rafflesia/proteins/fold_search_monitoring_observation.rb
Constant Summary collapse
- HASH_ATTRS =
{ code: :code, message: :message, observed_value: :observed_value, reference_value: :reference_value, severity: :severity }.freeze
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
-
#observed_value ⇒ Object
Returns the value of attribute observed_value.
-
#reference_value ⇒ Object
Returns the value of attribute reference_value.
-
#severity ⇒ Object
Returns the value of attribute severity.
Instance Method Summary collapse
-
#initialize(json) ⇒ FoldSearchMonitoringObservation
constructor
A new instance of FoldSearchMonitoringObservation.
Constructor Details
#initialize(json) ⇒ FoldSearchMonitoringObservation
Returns a new instance of FoldSearchMonitoringObservation.
23 24 25 26 27 28 29 30 31 |
# File 'lib/rafflesia/proteins/fold_search_monitoring_observation.rb', line 23 def initialize(json) super() hash = self.class.normalize(json) @code = hash[:code] @message = hash[:message] @observed_value = hash[:observed_value] @reference_value = hash[:reference_value] @severity = hash[:severity] end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
16 17 18 |
# File 'lib/rafflesia/proteins/fold_search_monitoring_observation.rb', line 16 def code @code end |
#message ⇒ Object
Returns the value of attribute message.
16 17 18 |
# File 'lib/rafflesia/proteins/fold_search_monitoring_observation.rb', line 16 def @message end |
#observed_value ⇒ Object
Returns the value of attribute observed_value.
16 17 18 |
# File 'lib/rafflesia/proteins/fold_search_monitoring_observation.rb', line 16 def observed_value @observed_value end |
#reference_value ⇒ Object
Returns the value of attribute reference_value.
16 17 18 |
# File 'lib/rafflesia/proteins/fold_search_monitoring_observation.rb', line 16 def reference_value @reference_value end |
#severity ⇒ Object
Returns the value of attribute severity.
16 17 18 |
# File 'lib/rafflesia/proteins/fold_search_monitoring_observation.rb', line 16 def severity @severity end |