Exception: RSS::UnknownConversionMethodError

Inherits:
Error
  • Object
show all
Defined in:
lib/rss/rss.rb

Overview

Raised when an unknown conversion error occurs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(to, from) ⇒ UnknownConversionMethodError

Returns a new instance of UnknownConversionMethodError.



162
163
164
165
166
# File 'lib/rss/rss.rb', line 162

def initialize(to, from)
  @to = to
  @from = from
  super("can't convert to #{to} from #{from}.")
end

Instance Attribute Details

#fromObject (readonly)

Returns the value of attribute from.



161
162
163
# File 'lib/rss/rss.rb', line 161

def from
  @from
end

#toObject (readonly)

Returns the value of attribute to.



161
162
163
# File 'lib/rss/rss.rb', line 161

def to
  @to
end