Class: Rafflesia::BiosearchQueryProfileValidation

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

Instance Method Summary collapse

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

#kindObject

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_idsObject

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_pathObject

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_idsObject

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_kindObject

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_versionObject

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_countObject

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_pathsObject

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_modesObject

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_countObject

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

#warningsObject

Returns the value of attribute warnings.



22
23
24
# File 'lib/rafflesia/biosearch/biosearch_query_profile_validation.rb', line 22

def warnings
  @warnings
end