Module: XRD

Defined in:
lib/xrd.rb,
lib/xrd/link.rb,
lib/xrd/title.rb,
lib/xrd/version.rb,
lib/xrd/properties.rb,
lib/xrd/resource_descriptor.rb

Defined Under Namespace

Modules: Properties, VERSION Classes: Link, ResourceDescriptor, Title

Constant Summary collapse

NAMESPACE =
'http://docs.oasis-open.org/ns/xri/xrd-1.0'

Class Method Summary collapse

Class Method Details

.fetch_and_parse(uri, adapter = HTTPAdapter::NetHTTPRequestAdapter, connection = nil) ⇒ Object



26
27
28
29
# File 'lib/xrd.rb', line 26

def self.fetch_and_parse(
    uri, adapter=HTTPAdapter::NetHTTPRequestAdapter, connection=nil)
  return XRD::ResourceDescriptor.fetch_and_parse(uri, adapter, connection)
end

.parse(xml) ⇒ Object



22
23
24
# File 'lib/xrd.rb', line 22

def self.parse(xml)
  return XRD::ResourceDescriptor.parse(xml)
end