Class: Rafflesia::LineageEdge

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

Instance Method Summary collapse

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_idObject

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_statusObject

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_idObject

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

#idObject

Returns the value of attribute id.



19
20
21
# File 'lib/rafflesia/registry/lineage_edge.rb', line 19

def id
  @id
end

#objectObject

Returns the value of attribute object.



19
20
21
# File 'lib/rafflesia/registry/lineage_edge.rb', line 19

def object
  @object
end

#predicateObject

Returns the value of attribute predicate.



19
20
21
# File 'lib/rafflesia/registry/lineage_edge.rb', line 19

def predicate
  @predicate
end

#source_urlObject

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_idObject

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