Module: FlightFacade::NodeFacade::Base

Defined in:
lib/flight_facade/facades.rb

Instance Method Summary collapse

Instance Method Details

#find_by_name(name) ⇒ Node?

Query for a Node object by its name alone

Parameters:

  • name (String)

    the name of the node

Returns:

  • (Node, nil)

    the node object or nil if it could not resolve the name

Raises:

  • (NotImplementedError)


139
140
141
# File 'lib/flight_facade/facades.rb', line 139

def find_by_name(name)
  raise NotImplementedError
end

#index_allArray<Node>

Query for all the available nodes

Returns:

  • (Array<Node>)

    the list of nodes

Raises:

  • (NotImplementedError)


145
146
147
# File 'lib/flight_facade/facades.rb', line 145

def index_all
  raise NotImplementedError
end