Exception: RemoveBg::InvalidUrlError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#urlObject (readonly)

Returns the value of attribute url.



58
59
60
# File 'lib/remove_bg/error.rb', line 58

def url
  @url
end