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