Class: Rafflesia::OntologyOnboardingAnchorData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::OntologyOnboardingAnchorData
- Defined in:
- lib/rafflesia/ontology/ontology_onboarding_anchor_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ example_inherited_paths: :example_inherited_paths, forward: :forward, identity_safe_delta: :identity_safe_delta, identity_safe_direct_pair_gain: :identity_safe_direct_pair_gain, identity_safe_transitive_pair_gain: :identity_safe_transitive_pair_gain, key_family: :key_family, review_digest: :review_digest, review_id: :review_id, strict_delta: :strict_delta, strict_direct_pair_gain: :strict_direct_pair_gain, strict_transitive_pair_gain: :strict_transitive_pair_gain }.freeze
Instance Attribute Summary collapse
-
#example_inherited_paths ⇒ Object
Returns the value of attribute example_inherited_paths.
-
#forward ⇒ Object
Returns the value of attribute forward.
-
#identity_safe_delta ⇒ Object
Returns the value of attribute identity_safe_delta.
-
#identity_safe_direct_pair_gain ⇒ Object
Returns the value of attribute identity_safe_direct_pair_gain.
-
#identity_safe_transitive_pair_gain ⇒ Object
Returns the value of attribute identity_safe_transitive_pair_gain.
-
#key_family ⇒ Object
Returns the value of attribute key_family.
-
#review_digest ⇒ Object
Returns the value of attribute review_digest.
-
#review_id ⇒ Object
Returns the value of attribute review_id.
-
#strict_delta ⇒ Object
Returns the value of attribute strict_delta.
-
#strict_direct_pair_gain ⇒ Object
Returns the value of attribute strict_direct_pair_gain.
-
#strict_transitive_pair_gain ⇒ Object
Returns the value of attribute strict_transitive_pair_gain.
Instance Method Summary collapse
-
#initialize(json) ⇒ OntologyOnboardingAnchorData
constructor
A new instance of OntologyOnboardingAnchorData.
Constructor Details
#initialize(json) ⇒ OntologyOnboardingAnchorData
Returns a new instance of OntologyOnboardingAnchorData.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/rafflesia/ontology/ontology_onboarding_anchor_data.rb', line 35 def initialize(json) super() hash = self.class.normalize(json) @example_inherited_paths = (hash[:example_inherited_paths] || []).map { |item| (item || []) } @forward = hash[:forward] ? Rafflesia::OntologyOnboardingRelationshipPatchData.new(hash[:forward]) : nil @identity_safe_delta = hash[:identity_safe_delta] ? Rafflesia::OntologyIncrementalClosureDeltaData.new(hash[:identity_safe_delta]) : nil @identity_safe_direct_pair_gain = hash[:identity_safe_direct_pair_gain] @identity_safe_transitive_pair_gain = hash[:identity_safe_transitive_pair_gain] @key_family = hash[:key_family] @review_digest = hash[:review_digest] @review_id = hash[:review_id] @strict_delta = hash[:strict_delta] ? Rafflesia::OntologyIncrementalClosureDeltaData.new(hash[:strict_delta]) : nil @strict_direct_pair_gain = hash[:strict_direct_pair_gain] @strict_transitive_pair_gain = hash[:strict_transitive_pair_gain] end |
Instance Attribute Details
#example_inherited_paths ⇒ Object
Returns the value of attribute example_inherited_paths.
22 23 24 |
# File 'lib/rafflesia/ontology/ontology_onboarding_anchor_data.rb', line 22 def example_inherited_paths @example_inherited_paths end |
#forward ⇒ Object
Returns the value of attribute forward.
22 23 24 |
# File 'lib/rafflesia/ontology/ontology_onboarding_anchor_data.rb', line 22 def forward @forward end |
#identity_safe_delta ⇒ Object
Returns the value of attribute identity_safe_delta.
22 23 24 |
# File 'lib/rafflesia/ontology/ontology_onboarding_anchor_data.rb', line 22 def identity_safe_delta @identity_safe_delta end |
#identity_safe_direct_pair_gain ⇒ Object
Returns the value of attribute identity_safe_direct_pair_gain.
22 23 24 |
# File 'lib/rafflesia/ontology/ontology_onboarding_anchor_data.rb', line 22 def identity_safe_direct_pair_gain @identity_safe_direct_pair_gain end |
#identity_safe_transitive_pair_gain ⇒ Object
Returns the value of attribute identity_safe_transitive_pair_gain.
22 23 24 |
# File 'lib/rafflesia/ontology/ontology_onboarding_anchor_data.rb', line 22 def identity_safe_transitive_pair_gain @identity_safe_transitive_pair_gain end |
#key_family ⇒ Object
Returns the value of attribute key_family.
22 23 24 |
# File 'lib/rafflesia/ontology/ontology_onboarding_anchor_data.rb', line 22 def key_family @key_family end |
#review_digest ⇒ Object
Returns the value of attribute review_digest.
22 23 24 |
# File 'lib/rafflesia/ontology/ontology_onboarding_anchor_data.rb', line 22 def review_digest @review_digest end |
#review_id ⇒ Object
Returns the value of attribute review_id.
22 23 24 |
# File 'lib/rafflesia/ontology/ontology_onboarding_anchor_data.rb', line 22 def review_id @review_id end |
#strict_delta ⇒ Object
Returns the value of attribute strict_delta.
22 23 24 |
# File 'lib/rafflesia/ontology/ontology_onboarding_anchor_data.rb', line 22 def strict_delta @strict_delta end |
#strict_direct_pair_gain ⇒ Object
Returns the value of attribute strict_direct_pair_gain.
22 23 24 |
# File 'lib/rafflesia/ontology/ontology_onboarding_anchor_data.rb', line 22 def strict_direct_pair_gain @strict_direct_pair_gain end |
#strict_transitive_pair_gain ⇒ Object
Returns the value of attribute strict_transitive_pair_gain.
22 23 24 |
# File 'lib/rafflesia/ontology/ontology_onboarding_anchor_data.rb', line 22 def strict_transitive_pair_gain @strict_transitive_pair_gain end |