Exception: RSS::NotAvailableValueError
- Inherits:
-
InvalidRSSError
- Object
- StandardError
- Error
- InvalidRSSError
- RSS::NotAvailableValueError
- Defined in:
- lib/rss/rss.rb
Instance Attribute Summary (collapse)
-
- (Object) attribute
readonly
Returns the value of attribute attribute.
-
- (Object) tag
readonly
Returns the value of attribute tag.
-
- (Object) value
readonly
Returns the value of attribute value.
Instance Method Summary (collapse)
-
- (NotAvailableValueError) initialize(tag, value, attribute = nil)
constructor
A new instance of NotAvailableValueError.
Constructor Details
- (NotAvailableValueError) initialize(tag, value, attribute = nil)
A new instance of NotAvailableValueError
117 118 119 120 121 122 123 |
# File 'lib/rss/rss.rb', line 117 def initialize(tag, value, attribute=nil) @tag, @value, @attribute = tag, value, attribute = "value <#{value}> of " << "attribute <#{attribute}> of " if attribute << "tag <#{tag}> is not available." super() end |
Instance Attribute Details
- (Object) attribute (readonly)
Returns the value of attribute attribute
116 117 118 |
# File 'lib/rss/rss.rb', line 116 def attribute @attribute end |
- (Object) tag (readonly)
Returns the value of attribute tag
116 117 118 |
# File 'lib/rss/rss.rb', line 116 def tag @tag end |
- (Object) value (readonly)
Returns the value of attribute value
116 117 118 |
# File 'lib/rss/rss.rb', line 116 def value @value end |