class RGovData::RegistryStrategy
Attributes
realm[RW]
Public Class Methods
instance_for_realm(realm)
click to toggle source
Returns the appropriate RegistryStrategy
for the given realm realm
is the required realm
# File lib/rgovdata/catalog/registry_strategy/registry_strategy.rb, line 7 def instance_for_realm(realm) # TODO: this is where we can abstract different registry schemes # e.g by default we will look for a class called Rgovdata::<realm>Registry (Rgovdata::ZhRegistry) # else we take the default strategy # Currently this just defaults to internal registry: RGovData::InternalRegistry.new(realm) end
new(default_realm=nil)
click to toggle source
new
accepts realm parameter
# File lib/rgovdata/catalog/registry_strategy/registry_strategy.rb, line 17 def initialize(default_realm=nil) @realm = default_realm end
Public Instance Methods
load_services()
click to toggle source
Returns the list of services for the realm
# File lib/rgovdata/catalog/registry_strategy/registry_strategy.rb, line 22 def load_services [] end