Class: Rafflesia::BiosearchQueryProfileValidation
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::BiosearchQueryProfileValidation
- Defined in:
- lib/rafflesia/biosearch/biosearch_query_profile_validation.rb
Constant Summary collapse
- HASH_ATTRS =
{ kind: :kind, max_observed_result_set_ids: :max_observed_result_set_ids, max_observed_result_set_path: :max_observed_result_set_path, max_result_set_ids: :max_result_set_ids, profile_kind: :profile_kind, profile_version: :profile_version, required_path_count: :required_path_count, required_paths: :required_paths, result_set_modes: :result_set_modes, row_count: :row_count, warnings: :warnings }.freeze
Instance Attribute Summary collapse
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#max_observed_result_set_ids ⇒ Object
Returns the value of attribute max_observed_result_set_ids.
-
#max_observed_result_set_path ⇒ Object
Returns the value of attribute max_observed_result_set_path.
-
#max_result_set_ids ⇒ Object
Returns the value of attribute max_result_set_ids.
-
#profile_kind ⇒ Object
Returns the value of attribute profile_kind.
-
#profile_version ⇒ Object
Returns the value of attribute profile_version.
-
#required_path_count ⇒ Object
Returns the value of attribute required_path_count.
-
#required_paths ⇒ Object
Returns the value of attribute required_paths.
-
#result_set_modes ⇒ Object
Returns the value of attribute result_set_modes.
-
#row_count ⇒ Object
Returns the value of attribute row_count.
-
#warnings ⇒ Object
Returns the value of attribute warnings.
Instance Method Summary collapse
-
#initialize(json) ⇒ BiosearchQueryProfileValidation
constructor
A new instance of BiosearchQueryProfileValidation.
Constructor Details
#initialize(json) ⇒ BiosearchQueryProfileValidation
Returns a new instance of BiosearchQueryProfileValidation.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_validation.rb', line 35 def initialize(json) super() hash = self.class.normalize(json) @kind = hash[:kind] @max_observed_result_set_ids = hash[:max_observed_result_set_ids] @max_observed_result_set_path = hash[:max_observed_result_set_path] @max_result_set_ids = hash[:max_result_set_ids] @profile_kind = hash[:profile_kind] @profile_version = hash[:profile_version] @required_path_count = hash[:required_path_count] @required_paths = (hash[:required_paths] || []) @result_set_modes = hash[:result_set_modes] || {} @row_count = hash[:row_count] @warnings = (hash[:warnings] || []) end |
Instance Attribute Details
#kind ⇒ Object
Returns the value of attribute kind.
22 23 24 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_validation.rb', line 22 def kind @kind end |
#max_observed_result_set_ids ⇒ Object
Returns the value of attribute max_observed_result_set_ids.
22 23 24 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_validation.rb', line 22 def max_observed_result_set_ids @max_observed_result_set_ids end |
#max_observed_result_set_path ⇒ Object
Returns the value of attribute max_observed_result_set_path.
22 23 24 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_validation.rb', line 22 def max_observed_result_set_path @max_observed_result_set_path end |
#max_result_set_ids ⇒ Object
Returns the value of attribute max_result_set_ids.
22 23 24 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_validation.rb', line 22 def max_result_set_ids @max_result_set_ids end |
#profile_kind ⇒ Object
Returns the value of attribute profile_kind.
22 23 24 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_validation.rb', line 22 def profile_kind @profile_kind end |
#profile_version ⇒ Object
Returns the value of attribute profile_version.
22 23 24 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_validation.rb', line 22 def profile_version @profile_version end |
#required_path_count ⇒ Object
Returns the value of attribute required_path_count.
22 23 24 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_validation.rb', line 22 def required_path_count @required_path_count end |
#required_paths ⇒ Object
Returns the value of attribute required_paths.
22 23 24 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_validation.rb', line 22 def required_paths @required_paths end |
#result_set_modes ⇒ Object
Returns the value of attribute result_set_modes.
22 23 24 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_validation.rb', line 22 def result_set_modes @result_set_modes end |
#row_count ⇒ Object
Returns the value of attribute row_count.
22 23 24 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_validation.rb', line 22 def row_count @row_count end |
#warnings ⇒ Object
Returns the value of attribute warnings.
22 23 24 |
# File 'lib/rafflesia/biosearch/biosearch_query_profile_validation.rb', line 22 def warnings @warnings end |