Class: RGovData::InternalRegistry
- Inherits:
-
RegistryStrategy
- Object
- RegistryStrategy
- RGovData::InternalRegistry
- Defined in:
- lib/rgovdata/catalog/registry_strategy/internal_registry.rb
Instance Attribute Summary
Attributes inherited from RegistryStrategy
Instance Method Summary collapse
-
#load_services ⇒ Object
Returns the list of services for the realm based on internal yml file.
Methods inherited from RegistryStrategy
#initialize, instance_for_realm
Constructor Details
This class inherits a constructor from RGovData::RegistryStrategy
Instance Method Details
#load_services ⇒ Object
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 |