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

Returns a new instance of MissingAttributeError.



123
124
125
126
# File 'lib/rss/rss.rb', line 123

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.



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

def attribute
  @attribute
end

#tagObject (readonly)

Returns the value of attribute tag.



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

def tag
  @tag
end