Exception: RSS::TooMuchTagError

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

Overview

Some tags must only exist a specific number of times in a given RSS feed. If a feed has too many occurrences of one of these tags, a TooMuchTagError will be raised.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tag, parent) ⇒ TooMuchTagError

Returns a new instance of TooMuchTagError.



109
110
111
112
# File 'lib/rss/rss.rb', line 109

def initialize(tag, parent)
  @tag, @parent = tag, parent
  super("tag <#{tag}> is too much in tag <#{parent}>")
end

Instance Attribute Details

#parentObject (readonly)

Returns the value of attribute parent.



108
109
110
# File 'lib/rss/rss.rb', line 108

def parent
  @parent
end

#tagObject (readonly)

Returns the value of attribute tag.



108
109
110
# File 'lib/rss/rss.rb', line 108

def tag
  @tag
end