123456789_123456789_123456789_123456789_123456789_

Exception: RSS::NotAvailableValueError

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

Attributes are in key-value form, and if there's no value provided for an attribute, a NotAvailableValueError will be raised.

Class Method Summary

Instance Attribute Summary

Constructor Details

.new(tag, value, attribute = nil) ⇒ NotAvailableValueError

[ GitHub ]

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

def initialize(tag, value, attribute=nil)
  @tag, @value, @attribute = tag, value, attribute
  message = "value <#{value}> of "
  message << "attribute <#{attribute}> of " if attribute
  message << "tag <#{tag}> is not available."
  super(message)
end

Instance Attribute Details

#attribute (readonly)

[ GitHub ]

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

attr_reader :tag, :value, :attribute

#tag (readonly)

[ GitHub ]

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

attr_reader :tag, :value, :attribute

#value (readonly)

[ GitHub ]

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

attr_reader :tag, :value, :attribute