Class: ObjectTopologyProvider

Inherits:
ITopologyProvider show all
Defined in:
lib/providers/customs/object_topology_provider.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(topology) ⇒ ObjectTopologyProvider



4
5
6
# File 'lib/providers/customs/object_topology_provider.rb', line 4

def initialize(topology)
    @topology = topology
end

Instance Attribute Details

#uri_resourceObject (readonly)

Returns the value of attribute uri_resource.



2
3
4
# File 'lib/providers/customs/object_topology_provider.rb', line 2

def uri_resource
  @uri_resource
end

Instance Method Details

#get_path_between(source, destination) ⇒ Object

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/providers/customs/object_topology_provider.rb', line 12

def get_path_between(source, destination)
	raise NotImplementedError, "ITopologyProvider: Implement this method in a child class"
end

#get_topologyObject



8
9
10
# File 'lib/providers/customs/object_topology_provider.rb', line 8

def get_topology
   @topology.topology_elements
end