Exception: RemoveBg::InvalidUrlError
- Defined in:
- lib/remove_bg/error.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url) ⇒ InvalidUrlError
constructor
A new instance of InvalidUrlError.
Constructor Details
#initialize(url) ⇒ InvalidUrlError
Returns a new instance of InvalidUrlError.
60 61 62 63 |
# File 'lib/remove_bg/error.rb', line 60 def initialize(url) @url = url super("Invalid URL: #{url.inspect}") end |
Instance Attribute Details
#url ⇒ Object (readonly)
Returns the value of attribute url.
58 59 60 |
# File 'lib/remove_bg/error.rb', line 58 def url @url end |