Exception: RSS::ConversionError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(string, to, from) ⇒ ConversionError

Returns a new instance of ConversionError.



139
140
141
142
143
144
# File 'lib/rss/rss.rb', line 139

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

Instance Attribute Details

#fromObject (readonly)

Returns the value of attribute from.



138
139
140
# File 'lib/rss/rss.rb', line 138

def from
  @from
end

#stringObject (readonly)

Returns the value of attribute string.



138
139
140
# File 'lib/rss/rss.rb', line 138

def string
  @string
end

#toObject (readonly)

Returns the value of attribute to.



138
139
140
# File 'lib/rss/rss.rb', line 138

def to
  @to
end