Class: Rafflesia::OntologyPathQueryPlan
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::OntologyPathQueryPlan
- Defined in:
- lib/rafflesia/ontology/ontology_path_query_plan.rb
Constant Summary collapse
- HASH_ATTRS =
{ id: :id, is_executable: :is_executable, object: :object, plan_digest: :plan_digest, required_join_evidence: :required_join_evidence, sources: :sources, sql_from_clause: :sql_from_clause }.freeze
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_executable ⇒ Object
Returns the value of attribute is_executable.
-
#object ⇒ Object
Returns the value of attribute object.
-
#plan_digest ⇒ Object
Returns the value of attribute plan_digest.
-
#required_join_evidence ⇒ Object
Returns the value of attribute required_join_evidence.
-
#sources ⇒ Object
Returns the value of attribute sources.
-
#sql_from_clause ⇒ Object
Returns the value of attribute sql_from_clause.
Instance Method Summary collapse
-
#initialize(json) ⇒ OntologyPathQueryPlan
constructor
A new instance of OntologyPathQueryPlan.
Constructor Details
#initialize(json) ⇒ OntologyPathQueryPlan
Returns a new instance of OntologyPathQueryPlan.
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/rafflesia/ontology/ontology_path_query_plan.rb', line 27 def initialize(json) super() hash = self.class.normalize(json) @id = hash[:id] @is_executable = hash[:is_executable] @object = hash[:object] @plan_digest = hash[:plan_digest] @required_join_evidence = (hash[:required_join_evidence] || []).map { |item| item ? Rafflesia::DatabaseJoinEvidenceRequirement.new(item) : nil } @sources = (hash[:sources] || []).map { |item| item ? Rafflesia::DatabaseJoinSourceFragment.new(item) : nil } @sql_from_clause = hash[:sql_from_clause] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
18 19 20 |
# File 'lib/rafflesia/ontology/ontology_path_query_plan.rb', line 18 def id @id end |
#is_executable ⇒ Object
Returns the value of attribute is_executable.
18 19 20 |
# File 'lib/rafflesia/ontology/ontology_path_query_plan.rb', line 18 def is_executable @is_executable end |
#object ⇒ Object
Returns the value of attribute object.
18 19 20 |
# File 'lib/rafflesia/ontology/ontology_path_query_plan.rb', line 18 def object @object end |
#plan_digest ⇒ Object
Returns the value of attribute plan_digest.
18 19 20 |
# File 'lib/rafflesia/ontology/ontology_path_query_plan.rb', line 18 def plan_digest @plan_digest end |
#required_join_evidence ⇒ Object
Returns the value of attribute required_join_evidence.
18 19 20 |
# File 'lib/rafflesia/ontology/ontology_path_query_plan.rb', line 18 def required_join_evidence @required_join_evidence end |
#sources ⇒ Object
Returns the value of attribute sources.
18 19 20 |
# File 'lib/rafflesia/ontology/ontology_path_query_plan.rb', line 18 def sources @sources end |
#sql_from_clause ⇒ Object
Returns the value of attribute sql_from_clause.
18 19 20 |
# File 'lib/rafflesia/ontology/ontology_path_query_plan.rb', line 18 def sql_from_clause @sql_from_clause end |