Class: Rafflesia::DatabaseJoinPathEdge
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatabaseJoinPathEdge
- 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
-
#from_source ⇒ Object
Returns the value of attribute from_source.
-
#key_variant ⇒ Object
Returns the value of attribute key_variant.
-
#relationship_id ⇒ Object
Returns the value of attribute relationship_id.
-
#to_source ⇒ Object
Returns the value of attribute to_source.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatabaseJoinPathEdge
constructor
A new instance of DatabaseJoinPathEdge.
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_source ⇒ Object
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_variant ⇒ Object
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_id ⇒ Object
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_source ⇒ Object
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 |