Sha256: 0ff706be7bf859d7a523914aa148a7969f13165c29799883112126076c1f5b10

Contents?: true

Size: 277 Bytes

Versions: 2

Compression:

Stored size: 277 Bytes

Contents

module ActiveFedora
  class Fedora
    def initialize(config)
      @config = config
    end

    def host
      @config[:url]
    end

    def base_path
      @config[:base_path] || '/'
    end

    def connection
      @connection ||= Ldp::Client.new(host)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active-fedora-9.0.0.beta2 lib/active_fedora/fedora.rb
active-fedora-9.0.0.beta1 lib/active_fedora/fedora.rb