Class: Elasticsearch::Model::Extensions::ShortestPath::Edge
- Inherits:
-
Object
- Object
- Elasticsearch::Model::Extensions::ShortestPath::Edge
- Defined in:
- lib/elasticsearch/model/extensions/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.
48 49 50 51 |
# File 'lib/elasticsearch/model/extensions/shortest_path.rb', line 48 def initialize(name:, destination:) @name = name @destination = destination end |
Instance Method Details
#destination ⇒ Object
57 58 59 |
# File 'lib/elasticsearch/model/extensions/shortest_path.rb', line 57 def destination @destination end |
#name ⇒ Object
53 54 55 |
# File 'lib/elasticsearch/model/extensions/shortest_path.rb', line 53 def name @name end |