Sha256: 71169a9cc9b8eda4701f3b74e053b0a5adbadd3d862b732d7493c2625f71502b

Contents?: true

Size: 320 Bytes

Versions: 24

Compression:

Stored size: 320 Bytes

Contents

# An endpoint is used as source to fetch objects
class LHS::Endpoint
  
  def self.for_url(url)
    template, service = LHS::Service::Endpoints.all.detect do |template, _service|
      LHC::Endpoint.match?(url, template)
    end
    service.endpoints.detect { |endpoint| endpoint.url == template } if service
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
lhs-2.2.2 lib/lhs/endpoint.rb
lhs-1.6.1 lib/lhs/endpoint.rb
lhs-2.2.1 lib/lhs/endpoint.rb
lhs-2.2.0 lib/lhs/endpoint.rb
lhs-1.6.0 lib/lhs/endpoint.rb
lhs-2.1.1 lib/lhs/endpoint.rb
lhs-2.1.0 lib/lhs/endpoint.rb
lhs-2.0.5 lib/lhs/endpoint.rb
lhs-2.0.4 lib/lhs/endpoint.rb
lhs-2.0.3 lib/lhs/endpoint.rb
lhs-2.0.2 lib/lhs/endpoint.rb
lhs-2.0.1 lib/lhs/endpoint.rb
lhs-2.0.0 lib/lhs/endpoint.rb
lhs-1.5.0 lib/lhs/endpoint.rb
lhs-1.4.0 lib/lhs/endpoint.rb
lhs-1.3.1 lib/lhs/endpoint.rb
lhs-1.3.0 lib/lhs/endpoint.rb
lhs-1.2.3 lib/lhs/endpoint.rb
lhs-1.2.2 lib/lhs/endpoint.rb
lhs-1.2.1 lib/lhs/endpoint.rb