Sha256: f5e9263cf91db7583ae7e1cc44e61ca08557caafd8b25dc798d5342b0f62ce97

Contents?: true

Size: 455 Bytes

Versions: 76

Compression:

Stored size: 455 Bytes

Contents

# frozen_string_literal: true

require 'active_support'

class LHS::Proxy

  module Link
    extend ActiveSupport::Concern

    private

    def record_from_link
      LHS::Record.for_url(_data.href)
    end

    def endpoint_from_link
      LHS::Endpoint.for_url(_data.href)
    end

    def params_from_link
      return {} if !_data.href || !endpoint_from_link
      LHC::Endpoint.values_as_params(endpoint_from_link.url, _data.href)
    end
  end
end

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
lhs-26.2.0 lib/lhs/concerns/proxy/link.rb
lhs-26.1.0 lib/lhs/concerns/proxy/link.rb
lhs-26.0.1 lib/lhs/concerns/proxy/link.rb
lhs-26.0.0 lib/lhs/concerns/proxy/link.rb
lhs-25.2.0 lib/lhs/concerns/proxy/link.rb
lhs-25.1.0 lib/lhs/concerns/proxy/link.rb
lhs-25.0.4 lib/lhs/concerns/proxy/link.rb
lhs-25.0.3 lib/lhs/concerns/proxy/link.rb
lhs-25.0.2 lib/lhs/concerns/proxy/link.rb
lhs-25.0.1 lib/lhs/concerns/proxy/link.rb
lhs-25.0.0 lib/lhs/concerns/proxy/link.rb
lhs-24.1.2 lib/lhs/concerns/proxy/link.rb
lhs-24.1.1 lib/lhs/concerns/proxy/link.rb
lhs-24.1.0 lib/lhs/concerns/proxy/link.rb
lhs-24.1.0.pre.2 lib/lhs/concerns/proxy/link.rb
lhs-24.1.0.pre.1 lib/lhs/concerns/proxy/link.rb
lhs-24.0.0 lib/lhs/concerns/proxy/link.rb
lhs-23.0.2 lib/lhs/concerns/proxy/link.rb
lhs-23.0.1 lib/lhs/concerns/proxy/link.rb
lhs-23.0.0 lib/lhs/concerns/proxy/link.rb