123456789_123456789_123456789_123456789_123456789_

Exception: RSS::MissingAttributeError

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, InvalidRSSError, Error, StandardError
Instance Chain:
self, InvalidRSSError, Error, StandardError
Inherits: RSS::InvalidRSSError
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.

Class Method Summary

Instance Attribute Summary

Constructor Details

.new(tag, attribute) ⇒ MissingAttributeError

[ GitHub ]

  
# 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 (readonly)

[ GitHub ]

  
# File 'lib/rss/rss.rb', line 122

attr_reader :tag, :attribute

#tag (readonly)

[ GitHub ]

  
# File 'lib/rss/rss.rb', line 122

attr_reader :tag, :attribute