Module: Ldp

Extended by:
Uri
Defined in:
lib/ldp/client.rb,
lib/ldp.rb,
lib/ldp/orm.rb,
lib/ldp/error.rb,
lib/ldp/version.rb,
lib/ldp/resource.rb,
lib/ldp/response.rb,
lib/ldp/container.rb,
lib/ldp/container/basic.rb,
lib/ldp/container/direct.rb,
lib/ldp/container/indirect.rb,
lib/ldp/resource/rdf_source.rb,
lib/ldp/client/prefer_headers.rb,
lib/ldp/resource/binary_source.rb

Overview

LDP client for presenting an ORM on top of an LDP resource

Defined Under Namespace

Modules: Uri Classes: BadRequest, Client, Conflict, Container, Error, Gone, GraphDifferenceException, HttpError, NoneClass, NotFound, Orm, PreconditionFailed, PreferHeaders, Resource, Response, UnexpectedContentType

Constant Summary collapse

None =

The single global instance of NoneClass, representing the empty Option

NoneClass.instance
ETagMismatch =

deprecation

PreconditionFailed
VERSION =
"1.2.1"

Class Attribute Summary collapse

Class Method Summary collapse

Methods included from Uri

basic_container, container, contains, direct_container, has_member_relation, indirect_container, member, membership_predicate, next_page, non_rdf_source, page, page_of, prefer_containment, prefer_empty_container, prefer_membership, rdf_source, resource, uri

Class Attribute Details

.loggerObject



35
36
37
38
39
# File 'lib/ldp.rb', line 35

def logger
  @logger ||= Logger.new(STDOUT).tap do |log|
    log.level = Logger::WARN
  end
end

Class Method Details

.instrument(*args, &block) ⇒ Object



41
42
43
44
45
46
47
# File 'lib/ldp.rb', line 41

def instrument *args, &block
  if defined?(::ActiveSupport) && defined?(::ActiveSupport::Notifications)
    ActiveSupport::Notifications.instrument *args, &block
  else
    yield
  end
end