Exception: RSS::MissingAttributeError
- Inherits:
-
InvalidRSSError
- Object
- StandardError
- Error
- InvalidRSSError
- RSS::MissingAttributeError
- Defined in:
- lib/rss/rss.rb
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.
90 91 92 93 |
# File 'lib/rss/rss.rb', line 90 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.
89 90 91 |
# File 'lib/rss/rss.rb', line 89 def attribute @attribute end |
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
89 90 91 |
# File 'lib/rss/rss.rb', line 89 def tag @tag end |