class Atom::Namespace

Namespace Object Class

Example:

namespace = Atom::Namespace.new(:prefix => 'dc', :uri => 'http://purl.org/dc/elements/1.1/')
# you can omit prefix
# namespace = Atom::Namespace.new(:uri => 'http://purl.org/dc/elements/1.1/')
puts namespace.prefix # dc
puts namespace.uri    # http://purl.org/dc/elements/1.1/

Mager namespaces are already set as constants. You can use them directly without making new Atom::Namespace instance

Constants

APP

Atom app namespace

APP_WITH_PREFIX

Atom app namespace with prefix

ATOM

Atom namespace

ATOM_WITH_PREFIX

Atom namespace using prefix

DC

Dubline Core namespace

FOAF
OBSOLETE_APP

Atom app namespace for version 0.3

OBSOLETE_APP_WITH_PREFIX

Atom app namespace for version 0.3 with prefix

OBSOLETE_ATOM

Atom namespace for version 0.3

OBSOLETE_ATOM_WITH_PREFIX

Atom namespace for version 0.3 using prefix

Open Search namespace that is often used for pagination

RDF
THR

Attributes

prefix[R]
uri[R]