Class: Rafflesia::RelationReleaseOntologyRelation

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/datasets/relation_release_ontology_relation.rb

Constant Summary collapse

HASH_ATTRS =
{
  connectivity_class: :connectivity_class,
  direct_identity_safe_release_edge_count: :direct_identity_safe_release_edge_count,
  direct_strict_release_edge_count: :direct_strict_release_edge_count,
  identity_safe_component_id: :identity_safe_component_id,
  identity_safe_component_size: :identity_safe_component_size,
  identity_safe_reachable_release_relation_count: :identity_safe_reachable_release_relation_count,
  inferred_identity_safe_release_relation_count: :inferred_identity_safe_release_relation_count,
  inferred_strict_release_relation_count: :inferred_strict_release_relation_count,
  relation: :relation,
  strict_component_id: :strict_component_id,
  strict_component_size: :strict_component_size,
  strict_reachable_release_relation_count: :strict_reachable_release_relation_count
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ RelationReleaseOntologyRelation

Returns a new instance of RelationReleaseOntologyRelation.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/rafflesia/datasets/relation_release_ontology_relation.rb', line 37

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @connectivity_class = hash[:connectivity_class]
  @direct_identity_safe_release_edge_count = hash[:direct_identity_safe_release_edge_count]
  @direct_strict_release_edge_count = hash[:direct_strict_release_edge_count]
  @identity_safe_component_id = hash[:identity_safe_component_id]
  @identity_safe_component_size = hash[:identity_safe_component_size]
  @identity_safe_reachable_release_relation_count = hash[:identity_safe_reachable_release_relation_count]
  @inferred_identity_safe_release_relation_count = hash[:inferred_identity_safe_release_relation_count]
  @inferred_strict_release_relation_count = hash[:inferred_strict_release_relation_count]
  @relation = hash[:relation]
  @strict_component_id = hash[:strict_component_id]
  @strict_component_size = hash[:strict_component_size]
  @strict_reachable_release_relation_count = hash[:strict_reachable_release_relation_count]
end

Instance Attribute Details

#connectivity_classObject

Returns the value of attribute connectivity_class.



23
24
25
# File 'lib/rafflesia/datasets/relation_release_ontology_relation.rb', line 23

def connectivity_class
  @connectivity_class
end

#direct_identity_safe_release_edge_countObject

Returns the value of attribute direct_identity_safe_release_edge_count.



23
24
25
# File 'lib/rafflesia/datasets/relation_release_ontology_relation.rb', line 23

def direct_identity_safe_release_edge_count
  @direct_identity_safe_release_edge_count
end

#direct_strict_release_edge_countObject

Returns the value of attribute direct_strict_release_edge_count.



23
24
25
# File 'lib/rafflesia/datasets/relation_release_ontology_relation.rb', line 23

def direct_strict_release_edge_count
  @direct_strict_release_edge_count
end

#identity_safe_component_idObject

Returns the value of attribute identity_safe_component_id.



23
24
25
# File 'lib/rafflesia/datasets/relation_release_ontology_relation.rb', line 23

def identity_safe_component_id
  @identity_safe_component_id
end

#identity_safe_component_sizeObject

Returns the value of attribute identity_safe_component_size.



23
24
25
# File 'lib/rafflesia/datasets/relation_release_ontology_relation.rb', line 23

def identity_safe_component_size
  @identity_safe_component_size
end

#identity_safe_reachable_release_relation_countObject

Returns the value of attribute identity_safe_reachable_release_relation_count.



23
24
25
# File 'lib/rafflesia/datasets/relation_release_ontology_relation.rb', line 23

def identity_safe_reachable_release_relation_count
  @identity_safe_reachable_release_relation_count
end

#inferred_identity_safe_release_relation_countObject

Returns the value of attribute inferred_identity_safe_release_relation_count.



23
24
25
# File 'lib/rafflesia/datasets/relation_release_ontology_relation.rb', line 23

def inferred_identity_safe_release_relation_count
  @inferred_identity_safe_release_relation_count
end

#inferred_strict_release_relation_countObject

Returns the value of attribute inferred_strict_release_relation_count.



23
24
25
# File 'lib/rafflesia/datasets/relation_release_ontology_relation.rb', line 23

def inferred_strict_release_relation_count
  @inferred_strict_release_relation_count
end

#relationObject

Returns the value of attribute relation.



23
24
25
# File 'lib/rafflesia/datasets/relation_release_ontology_relation.rb', line 23

def relation
  @relation
end

#strict_component_idObject

Returns the value of attribute strict_component_id.



23
24
25
# File 'lib/rafflesia/datasets/relation_release_ontology_relation.rb', line 23

def strict_component_id
  @strict_component_id
end

#strict_component_sizeObject

Returns the value of attribute strict_component_size.



23
24
25
# File 'lib/rafflesia/datasets/relation_release_ontology_relation.rb', line 23

def strict_component_size
  @strict_component_size
end

#strict_reachable_release_relation_countObject

Returns the value of attribute strict_reachable_release_relation_count.



23
24
25
# File 'lib/rafflesia/datasets/relation_release_ontology_relation.rb', line 23

def strict_reachable_release_relation_count
  @strict_reachable_release_relation_count
end