Exception: RSS::MissingAttributeError

Inherits:
InvalidRSSError show all
Defined in:
lib/rss/rss.rb

Overview

Certain attributes are required on specific tags in an RSS feed. If a feed is missing one of these attributes, a MissingAttributeError is raised.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tag, attribute) ⇒ MissingAttributeError



120
121
122
123
# File 'lib/rss/rss.rb', line 120

def initialize(tag, attribute)
  @tag, @attribute = tag, attribute
  super("attribute <#{attribute}> is missing in tag <#{tag}>")
end

Instance Attribute Details

#attributeObject (readonly)

Returns the value of attribute attribute.



119
120
121
# File 'lib/rss/rss.rb', line 119

def attribute
  @attribute
end

#tagObject (readonly)

Returns the value of attribute tag.



119
120
121
# File 'lib/rss/rss.rb', line 119

def tag
  @tag
end