Class Atom::Link
In: lib/atom/element.rb
Parent: Atom::Element

A link has the following attributes:

href (required):the link‘s IRI
rel:the relationship of the linked item to the current item
type:a hint about the media type of the linked item
hreflang:the language of the linked item (RFC3066)
title:human-readable information about the link
length:a hint about the length (in octets) of the linked item

Methods

parse   rel  

Included Modules

AttrEl

Public Class methods

[Source]

# File lib/atom/element.rb, line 601
    def self.parse xml, base = ''
      e = super

      # URL absolutization
      if !e.base.empty? and e.href
        e.href = (e.base.to_uri + e.href).to_s
      end

      e
    end

Public Instance methods

[Source]

# File lib/atom/element.rb, line 597
    def rel
      @rel or 'alternate'
    end

[Validate]