Class: Rafflesia::BiosearchQueryProfileAuditData

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

Constant Summary collapse

HASH_ATTRS =
{
  engine: :engine,
  kind: :kind,
  limit: :limit,
  section_count: :section_count,
  sections: :sections,
  timeout_ms: :timeout_ms,
  warnings: :warnings
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ BiosearchQueryProfileAuditData

Returns a new instance of BiosearchQueryProfileAuditData.



27
28
29
30
31
32
33
34
35
36
37
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_data.rb', line 27

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @engine = hash[:engine]
  @kind = hash[:kind]
  @limit = hash[:limit]
  @section_count = hash[:section_count]
  @sections = (hash[:sections] || []).map { |item| item ? Rafflesia::BiosearchQueryProfileAuditSection.new(item) : nil }
  @timeout_ms = hash[:timeout_ms]
  @warnings = (hash[:warnings] || [])
end

Instance Attribute Details

#engineObject

Returns the value of attribute engine.



18
19
20
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_data.rb', line 18

def engine
  @engine
end

#kindObject

Returns the value of attribute kind.



18
19
20
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_data.rb', line 18

def kind
  @kind
end

#limitObject

Returns the value of attribute limit.



18
19
20
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_data.rb', line 18

def limit
  @limit
end

#section_countObject

Returns the value of attribute section_count.



18
19
20
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_data.rb', line 18

def section_count
  @section_count
end

#sectionsObject

Returns the value of attribute sections.



18
19
20
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_data.rb', line 18

def sections
  @sections
end

#timeout_msObject

Returns the value of attribute timeout_ms.



18
19
20
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_data.rb', line 18

def timeout_ms
  @timeout_ms
end

#warningsObject

Returns the value of attribute warnings.



18
19
20
# File 'lib/rafflesia/biosearch/biosearch_query_profile_audit_data.rb', line 18

def warnings
  @warnings
end