Class: ZooService::DiscoveryImpl

Inherits:
Object
  • Object
show all
Defined in:
lib/zoo_service/discovery.rb

Overview

Performs service discovery for a HTTP service consumer.

Instance Method Summary collapse

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