Exception: URITemplate::Unconvertable
- Inherits:
-
StandardError
- Object
- StandardError
- URITemplate::Unconvertable
- Defined in:
- lib/uri_template/utils.rb
Overview
This error will be raised whenever an object could not be converted to a param string.
Instance Attribute Summary (collapse)
-
- (Object) object
readonly
Returns the value of attribute object.
Instance Method Summary (collapse)
-
- (Unconvertable) initialize(object)
constructor
A new instance of Unconvertable.
Constructor Details
- (Unconvertable) initialize(object)
A new instance of Unconvertable
68 69 70 71 |
# File 'lib/uri_template/utils.rb', line 68 def initialize(object) @object = object super("Could not convert the given object (#{Object.instance_method(:inspect).bind(@object).call() rescue '<????>'}) to a param since it doesn't respond to :to_param or :to_s.") end |
Instance Attribute Details
- (Object) object (readonly)
Returns the value of attribute object
66 67 68 |
# File 'lib/uri_template/utils.rb', line 66 def object @object end |