Class: Elasticsearch::Model::Extensions::AssociationPathFinding::ShortestPath::Edge

Inherits:
Object
  • Object
show all
Defined in:
lib/elasticsearch/model/extensions/association_path_finding/shortest_path.rb

Instance Method Summary collapse

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

#destinationObject



58
59
60
# File 'lib/elasticsearch/model/extensions/association_path_finding/shortest_path.rb', line 58

def destination
  @destination
end

#nameObject



54
55
56
# File 'lib/elasticsearch/model/extensions/association_path_finding/shortest_path.rb', line 54

def name
  @name
end