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.



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

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.



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

def parent
  @parent
end

#tagObject (readonly)

Returns the value of attribute tag.



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

def tag
  @tag
end