Sha256: 1c8c8cfa0a06ded7fa8fc2934ae2fd4f794481223ae0cdadbd4536c6ae7a797e

Contents?: true

Size: 474 Bytes

Versions: 32

Compression:

Stored size: 474 Bytes

Contents

require 'active_support'
# require File.dirname(__FILE__) + '/../../proxy'

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

32 entries across 32 versions & 1 rubygems

Version Path
lhs-11.3.3 lib/lhs/concerns/proxy/link.rb
lhs-11.3.2 lib/lhs/concerns/proxy/link.rb
lhs-11.3.1 lib/lhs/concerns/proxy/link.rb
lhs-11.3.0 lib/lhs/concerns/proxy/link.rb
lhs-11.2.2 lib/lhs/concerns/proxy/link.rb
lhs-11.2.1 lib/lhs/concerns/proxy/link.rb
lhs-11.2.0 lib/lhs/concerns/proxy/link.rb
lhs-11.1.0 lib/lhs/concerns/proxy/link.rb
lhs-11.0.3 lib/lhs/concerns/proxy/link.rb
lhs-11.0.2 lib/lhs/concerns/proxy/link.rb
lhs-11.0.1 lib/lhs/concerns/proxy/link.rb
lhs-11.0.0 lib/lhs/concerns/proxy/link.rb
lhs-10.1.1 lib/lhs/concerns/proxy/link.rb
lhs-10.1.0 lib/lhs/concerns/proxy/link.rb
lhs-10.0.0 lib/lhs/concerns/proxy/link.rb
lhs-9.1.1 lib/lhs/concerns/proxy/link.rb
lhs-9.1.0 lib/lhs/concerns/proxy/link.rb
lhs-9.0.4 lib/lhs/concerns/proxy/link.rb
lhs-9.0.3 lib/lhs/concerns/proxy/link.rb
lhs-9.0.2 lib/lhs/concerns/proxy/link.rb