Class: Rafflesia::FoldSearchMonitoringObservation

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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

#codeObject

Returns the value of attribute code.



16
17
18
# File 'lib/rafflesia/proteins/fold_search_monitoring_observation.rb', line 16

def code
  @code
end

#messageObject

Returns the value of attribute message.



16
17
18
# File 'lib/rafflesia/proteins/fold_search_monitoring_observation.rb', line 16

def message
  @message
end

#observed_valueObject

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_valueObject

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

#severityObject

Returns the value of attribute severity.



16
17
18
# File 'lib/rafflesia/proteins/fold_search_monitoring_observation.rb', line 16

def severity
  @severity
end