Class: ZooService::DiscoveryImpl
- Inherits:
-
Object
- Object
- ZooService::DiscoveryImpl
- Defined in:
- lib/zoo_service/discovery.rb
Overview
Performs service discovery for a HTTP service consumer.
Instance Method Summary collapse
-
#get_service_url(name) ⇒ Object
:call-seq: get_service_url(name) => String.
Instance Method Details
#get_service_url(name) ⇒ Object
:call-seq:
get_service_url(name) => String
Gets service URL by name.
Returns service URL, if everything went OK, nil
otherwise.
15 16 17 |
# File 'lib/zoo_service/discovery.rb', line 15 def get_service_url(name) get_published_urls(name).first end |