Class: Rafflesia::DatabaseJoinPathEdge

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/database_join_coverage_ledgers/database_join_path_edge.rb

Constant Summary collapse

HASH_ATTRS =
{
  from_source: :from_source,
  key_variant: :key_variant,
  relationship_id: :relationship_id,
  to_source: :to_source
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ DatabaseJoinPathEdge

Returns a new instance of DatabaseJoinPathEdge.



21
22
23
24
25
26
27
28
# File 'lib/rafflesia/database_join_coverage_ledgers/database_join_path_edge.rb', line 21

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @from_source = hash[:from_source]
  @key_variant = hash[:key_variant]
  @relationship_id = hash[:relationship_id]
  @to_source = hash[:to_source]
end

Instance Attribute Details

#from_sourceObject

Returns the value of attribute from_source.



15
16
17
# File 'lib/rafflesia/database_join_coverage_ledgers/database_join_path_edge.rb', line 15

def from_source
  @from_source
end

#key_variantObject

Returns the value of attribute key_variant.



15
16
17
# File 'lib/rafflesia/database_join_coverage_ledgers/database_join_path_edge.rb', line 15

def key_variant
  @key_variant
end

#relationship_idObject

Returns the value of attribute relationship_id.



15
16
17
# File 'lib/rafflesia/database_join_coverage_ledgers/database_join_path_edge.rb', line 15

def relationship_id
  @relationship_id
end

#to_sourceObject

Returns the value of attribute to_source.



15
16
17
# File 'lib/rafflesia/database_join_coverage_ledgers/database_join_path_edge.rb', line 15

def to_source
  @to_source
end