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

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

Instance Method Summary collapse

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

#destinationObject



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

def destination
  @destination
end

#nameObject



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

def name
  @name
end