Class: Dcmgr::Endpoints::Metadata::Provider

Inherits:
Object
  • Object
show all
Defined in:
lib/dcmgr/endpoints/metadata.rb

Overview

Base class for Metadata provider

Direct Known Subclasses

Provider_20101101

Instance Method Summary collapse

Instance Method Details

#document(src_ip) ⇒ Hash

Each Metadata provider returns a Hash data for a VM along with the src_ip

Parameters:

  • src_ip (String)

    Source IP address who requested to the Meatadata service.

Returns:

  • (Hash)

    Details for the VM

Raises:

  • (NotImplementedError)


128
129
130
# File 'lib/dcmgr/endpoints/metadata.rb', line 128

def document(src_ip)
  raise NotImplementedError
end