Module: LHS::Service::Endpoints::ClassMethods
- Defined in:
- lib/lhs/concerns/service/endpoints.rb
Instance Method Summary collapse
-
#endpoint(url, options = nil) ⇒ Object
Adds the endpoint to the list of endpoints.
- #for_url(url) ⇒ Object
Instance Method Details
#endpoint(url, options = nil) ⇒ Object
Adds the endpoint to the list of endpoints.
18 19 20 21 22 23 24 |
# File 'lib/lhs/concerns/service/endpoints.rb', line 18 def endpoint(url, = nil) endpoint = LHC::Endpoint.new(url, ) instance.sanity_check(endpoint) instance.endpoints.push(endpoint) LHS::Service::Endpoints.all ||= {} LHS::Service::Endpoints.all[url] = instance end |