Sha256: 4109bd67977445339b1e2296b6b3ea1884542c3b42516a936d514dd76a3779f8

Contents?: true

Size: 312 Bytes

Versions: 131

Compression:

Stored size: 312 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 } if record
  end
end

Version data entries

131 entries across 131 versions & 1 rubygems

Version Path
lhs-15.3.1 lib/lhs/endpoint.rb
lhs-15.3.1.pre.fixlhc.1 lib/lhs/endpoint.rb
lhs-15.3.0 lib/lhs/endpoint.rb
lhs-15.2.5 lib/lhs/endpoint.rb
lhs-15.2.4 lib/lhs/endpoint.rb
lhs-15.2.3 lib/lhs/endpoint.rb
lhs-15.2.3.pre.favorites.1 lib/lhs/endpoint.rb
lhs-15.2.2.pre.favorites.1 lib/lhs/endpoint.rb
lhs-15.2.2 lib/lhs/endpoint.rb
lhs-15.2.1 lib/lhs/endpoint.rb
lhs-15.2.0 lib/lhs/endpoint.rb
lhs-15.1.1 lib/lhs/endpoint.rb
lhs-15.1.0 lib/lhs/endpoint.rb
lhs-15.0.2 lib/lhs/endpoint.rb
lhs-15.0.1 lib/lhs/endpoint.rb
lhs-15.0.0 lib/lhs/endpoint.rb
lhs-14.6.5 lib/lhs/endpoint.rb
lhs-14.6.4 lib/lhs/endpoint.rb
lhs-14.6.3 lib/lhs/endpoint.rb
lhs-14.6.2 lib/lhs/endpoint.rb