Class: Rafflesia::BiosearchQueryProfileAuditData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::BiosearchQueryProfileAuditData
- 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
-
#engine ⇒ Object
Returns the value of attribute engine.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#section_count ⇒ Object
Returns the value of attribute section_count.
-
#sections ⇒ Object
Returns the value of attribute sections.
-
#timeout_ms ⇒ Object
Returns the value of attribute timeout_ms.
-
#warnings ⇒ Object
Returns the value of attribute warnings.
Instance Method Summary collapse
-
#initialize(json) ⇒ BiosearchQueryProfileAuditData
constructor
A new instance of BiosearchQueryProfileAuditData.
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
#engine ⇒ Object
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 |
#kind ⇒ Object
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 |
#limit ⇒ Object
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_count ⇒ Object
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 |
#sections ⇒ Object
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_ms ⇒ Object
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 |
#warnings ⇒ Object
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 |