Sha256: 556222bfc1718b0231576e9c3c59afa3eb7ccfb665dcb732159771c06e4cf76a

Contents?: true

Size: 318 Bytes

Versions: 15

Compression:

Stored size: 318 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_class|
      LHC::Endpoint.match?(url, template)
    end
    record.endpoints.detect { |endpoint| endpoint.url == template } if record
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
lhs-3.3.6 lib/lhs/endpoint.rb
lhs-3.3.5 lib/lhs/endpoint.rb
lhs-3.3.3 lib/lhs/endpoint.rb
lhs-3.3.2 lib/lhs/endpoint.rb
lhs-3.3.1 lib/lhs/endpoint.rb
lhs-3.3.0 lib/lhs/endpoint.rb
lhs-3.2.0 lib/lhs/endpoint.rb
lhs-3.1.3 lib/lhs/endpoint.rb
lhs-3.1.1 lib/lhs/endpoint.rb
lhs-3.1.0 lib/lhs/endpoint.rb
lhs-3.0.5 lib/lhs/endpoint.rb
lhs-3.0.4 lib/lhs/endpoint.rb
lhs-3.0.3 lib/lhs/endpoint.rb
lhs-3.0.2 lib/lhs/endpoint.rb
lhs-3.0.1 lib/lhs/endpoint.rb