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
120 121 122 123 |
# File 'lib/rss/rss.rb', line 120 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.
119 120 121 |
# File 'lib/rss/rss.rb', line 119 def attribute @attribute end |
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
119 120 121 |
# File 'lib/rss/rss.rb', line 119 def tag @tag end |