Exception: RSS::TooMuchTagError
- Inherits:
-
InvalidRSSError
- Object
- StandardError
- Error
- InvalidRSSError
- RSS::TooMuchTagError
- 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
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
Instance Method Summary collapse
-
#initialize(tag, parent) ⇒ TooMuchTagError
constructor
A new instance of TooMuchTagError.
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
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
109 110 111 |
# File 'lib/rss/rss.rb', line 109 def parent @parent end |
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
109 110 111 |
# File 'lib/rss/rss.rb', line 109 def tag @tag end |