Class: Rafflesia::BiosearchQueryProfileAuditGate

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/biosearch/biosearch_query_profile_audit_gate.rb

Constant Summary collapse

HASH_ATTRS =
{
  is_evaluated: :is_evaluated,
  is_passed: :is_passed,
  message: :message,
  metric: :metric,
  name: :name,
  observed: :observed,
  operator: :operator,
  threshold: :threshold
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ BiosearchQueryProfileAuditGate

Returns a new instance of BiosearchQueryProfileAuditGate.



29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_gate.rb', line 29

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @is_evaluated = hash[:is_evaluated]
  @is_passed = hash[:is_passed]
  @message = hash[:message]
  @metric = hash[:metric]
  @name = hash[:name]
  @observed = hash[:observed]
  @operator = hash[:operator]
  @threshold = hash[:threshold]
end

Instance Attribute Details

#is_evaluatedObject

Returns the value of attribute is_evaluated.



19
20
21
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_gate.rb', line 19

def is_evaluated
  @is_evaluated
end

#is_passedObject

Returns the value of attribute is_passed.



19
20
21
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_gate.rb', line 19

def is_passed
  @is_passed
end

#messageObject

Returns the value of attribute message.



19
20
21
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_gate.rb', line 19

def message
  @message
end

#metricObject

Returns the value of attribute metric.



19
20
21
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_gate.rb', line 19

def metric
  @metric
end

#nameObject

Returns the value of attribute name.



19
20
21
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_gate.rb', line 19

def name
  @name
end

#observedObject

Returns the value of attribute observed.



19
20
21
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_gate.rb', line 19

def observed
  @observed
end

#operatorObject

Returns the value of attribute operator.



19
20
21
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_gate.rb', line 19

def operator
  @operator
end

#thresholdObject

Returns the value of attribute threshold.



19
20
21
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_gate.rb', line 19

def threshold
  @threshold
end