Sha256: a26816bb900cf6db8f2a8db82b25770bd656e10afc223080d6036ed1d6eeb2ab

Contents?: true

Size: 304 Bytes

Versions: 19

Compression:

Stored size: 304 Bytes

Contents

# An endpoint is used as source to fetch objects
class LHS::Endpoint

  def self.for_url(url)
    template, record = LHS::Record::Endpoints.all.detect do |template, _record|
      LHC::Endpoint.match?(url, template)
    end
    record&.endpoints&.detect { |endpoint| endpoint.url == template }
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
lhs-16.1.5 lib/lhs/endpoint.rb
lhs-16.1.4 lib/lhs/endpoint.rb
lhs-16.1.3 lib/lhs/endpoint.rb
lhs-16.1.2 lib/lhs/endpoint.rb
lhs-16.1.1 lib/lhs/endpoint.rb
lhs-16.1.0 lib/lhs/endpoint.rb
lhs-16.0.1 lib/lhs/endpoint.rb
lhs-16.0.0 lib/lhs/endpoint.rb
lhs-15.7.0 lib/lhs/endpoint.rb
lhs-15.6.1 lib/lhs/endpoint.rb
lhs-15.6.0 lib/lhs/endpoint.rb
lhs-15.5.1 lib/lhs/endpoint.rb
lhs-15.5.0 lib/lhs/endpoint.rb
lhs-15.4.1 lib/lhs/endpoint.rb
lhs-15.4.0 lib/lhs/endpoint.rb
lhs-15.4.0.pre.hasone.1 lib/lhs/endpoint.rb
lhs-15.3.3 lib/lhs/endpoint.rb
lhs-15.3.3.pre.fixoptions.1 lib/lhs/endpoint.rb
lhs-15.3.2 lib/lhs/endpoint.rb