Class: Elasticsearch::Model::Extensions::AssociationPathFinding::ShortestPath::Edge
- Inherits:
-
Object
- Object
- Elasticsearch::Model::Extensions::AssociationPathFinding::ShortestPath::Edge
- Defined in:
- lib/elasticsearch/model/extensions/association_path_finding/shortest_path.rb
Instance Method Summary collapse
- #destination ⇒ Object
-
#initialize(name:, destination:) ⇒ Edge
constructor
A new instance of Edge.
- #name ⇒ Object
Constructor Details
#initialize(name:, destination:) ⇒ Edge
Returns a new instance of Edge.
49 50 51 52 |
# File 'lib/elasticsearch/model/extensions/association_path_finding/shortest_path.rb', line 49 def initialize(name:, destination:) @name = name @destination = destination end |
Instance Method Details
#destination ⇒ Object
58 59 60 |
# File 'lib/elasticsearch/model/extensions/association_path_finding/shortest_path.rb', line 58 def destination @destination end |
#name ⇒ Object
54 55 56 |
# File 'lib/elasticsearch/model/extensions/association_path_finding/shortest_path.rb', line 54 def name @name end |