Class: RGovData::InternalRegistry

Inherits:
RegistryStrategy show all
Defined in:
lib/rgovdata/catalog/registry_strategy/internal_registry.rb

Instance Attribute Summary

Attributes inherited from RegistryStrategy

#realm

Instance Method Summary collapse

Methods inherited from RegistryStrategy

#initialize, instance_for_realm

Constructor Details

This class inherits a constructor from RGovData::RegistryStrategy

Instance Method Details

#load_servicesObject

Returns the list of services for the realm based on internal yml file



5
6
7
8
9
10
# File 'lib/rgovdata/catalog/registry_strategy/internal_registry.rb', line 5

def load_services
  service_array = []
  registry = RGovData::Template.get('registry.yml',realm)
  YAML::load_documents( registry ) { |doc| service_array << doc }
  service_array
end