Class: Rafflesia::LineageEdge
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::LineageEdge
- Defined in:
- lib/rafflesia/registry/lineage_edge.rb
Constant Summary collapse
- HASH_ATTRS =
{ evidence_object_id: :evidence_object_id, evidence_status: :evidence_status, from_release_id: :from_release_id, id: :id, object: :object, predicate: :predicate, source_url: :source_url, to_release_id: :to_release_id }.freeze
Instance Attribute Summary collapse
-
#evidence_object_id ⇒ Object
Returns the value of attribute evidence_object_id.
-
#evidence_status ⇒ Object
Returns the value of attribute evidence_status.
-
#from_release_id ⇒ Object
Returns the value of attribute from_release_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#object ⇒ Object
Returns the value of attribute object.
-
#predicate ⇒ Object
Returns the value of attribute predicate.
-
#source_url ⇒ Object
Returns the value of attribute source_url.
-
#to_release_id ⇒ Object
Returns the value of attribute to_release_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ LineageEdge
constructor
A new instance of LineageEdge.
Constructor Details
#initialize(json) ⇒ LineageEdge
Returns a new instance of LineageEdge.
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/rafflesia/registry/lineage_edge.rb', line 29 def initialize(json) super() hash = self.class.normalize(json) @evidence_object_id = hash[:evidence_object_id] @evidence_status = hash[:evidence_status] @from_release_id = hash[:from_release_id] @id = hash[:id] @object = hash[:object] @predicate = hash[:predicate] @source_url = hash[:source_url] @to_release_id = hash[:to_release_id] end |
Instance Attribute Details
#evidence_object_id ⇒ Object
Returns the value of attribute evidence_object_id.
19 20 21 |
# File 'lib/rafflesia/registry/lineage_edge.rb', line 19 def evidence_object_id @evidence_object_id end |
#evidence_status ⇒ Object
Returns the value of attribute evidence_status.
19 20 21 |
# File 'lib/rafflesia/registry/lineage_edge.rb', line 19 def evidence_status @evidence_status end |
#from_release_id ⇒ Object
Returns the value of attribute from_release_id.
19 20 21 |
# File 'lib/rafflesia/registry/lineage_edge.rb', line 19 def from_release_id @from_release_id end |
#id ⇒ Object
Returns the value of attribute id.
19 20 21 |
# File 'lib/rafflesia/registry/lineage_edge.rb', line 19 def id @id end |
#object ⇒ Object
Returns the value of attribute object.
19 20 21 |
# File 'lib/rafflesia/registry/lineage_edge.rb', line 19 def object @object end |
#predicate ⇒ Object
Returns the value of attribute predicate.
19 20 21 |
# File 'lib/rafflesia/registry/lineage_edge.rb', line 19 def predicate @predicate end |
#source_url ⇒ Object
Returns the value of attribute source_url.
19 20 21 |
# File 'lib/rafflesia/registry/lineage_edge.rb', line 19 def source_url @source_url end |
#to_release_id ⇒ Object
Returns the value of attribute to_release_id.
19 20 21 |
# File 'lib/rafflesia/registry/lineage_edge.rb', line 19 def to_release_id @to_release_id end |